mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Reset state of all folders before connecting
This commit is contained in:
parent
63abaa1b33
commit
b41060ffde
1 changed files with 2 additions and 0 deletions
|
@ -429,6 +429,8 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
}
|
||||
|
||||
// Synchronize folders
|
||||
for (EntityFolder folder : db.folder().getFolders(account.id))
|
||||
db.folder().setFolderState(folder.id, null);
|
||||
for (final EntityFolder folder : db.folder().getFolders(account.id, true))
|
||||
try {
|
||||
Log.i(Helper.TAG, account.name + " sync folder " + folder.name);
|
||||
|
|
Loading…
Reference in a new issue