fix(GODT-2442): Remove unnecessary call to go-sync

This is not required in this call since address mode changes are always
proceeded by the removal of the IMAP user and then the creation of a new
IMAP user which will trigger the sync again.
This commit is contained in:
Leander Beernaert
2023-03-08 17:35:48 +01:00
parent 182dab18a6
commit c3454360fc

View File

@ -284,7 +284,6 @@ func (user *User) SetAddressMode(_ context.Context, mode vault.AddressMode) erro
user.syncAbort.Abort()
user.pollAbort.Abort()
defer user.goSync()
return safe.LockRet(func() error {
if err := user.vault.SetAddressMode(mode); err != nil {