Reset non syncable folders

This commit is contained in:
M66B 2021-10-25 07:26:47 +02:00
parent a5c26a1a2a
commit 834a4f0af4
1 changed files with 3 additions and 0 deletions

View File

@ -2439,6 +2439,8 @@ class Core {
" connected=" + (ifolder != null));
if (!EntityFolder.INBOX.equals(folder.type)) {
folder.synchronize = false;
db.folder().setFolderSynchronize(folder.id, folder.synchronize);
db.folder().setFolderSyncState(folder.id, null);
return;
}
@ -2851,6 +2853,7 @@ class Core {
if (folder.local) {
folder.synchronize = false;
db.folder().setFolderSynchronize(folder.id, folder.synchronize);
db.folder().setFolderSyncState(folder.id, null);
return;
}