From c3454360fc8febbfffab0574e93528b4033c6c19 Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Wed, 8 Mar 2023 17:35:48 +0100 Subject: [PATCH] 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. --- internal/user/user.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/user/user.go b/internal/user/user.go index 465307be..e3b8a8cb 100644 --- a/internal/user/user.go +++ b/internal/user/user.go @@ -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 {