mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
GODT-2252: Recover from deleted cached messages
Update to latest Gluon version and implement the new `Connector.GetMessageLiteral` function.
This commit is contained in:
@ -103,6 +103,16 @@ func (s *scenario) theUserDeletesTheGluonFiles() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *scenario) theUserDeletesTheGluonCache() error {
|
||||
if path, err := s.t.locator.ProvideGluonCachePath(); err != nil {
|
||||
return fmt.Errorf("failed to get gluon cache path: %w", err)
|
||||
} else if err := os.RemoveAll(path); err != nil {
|
||||
return fmt.Errorf("failed to remove gluon cache path: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *scenario) theUserHasDisabledAutomaticUpdates() error {
|
||||
var started bool
|
||||
|
||||
|
||||
Reference in New Issue
Block a user