From b41060ffdeaf11d6c1ef0d0361b72d0c24608adc Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 16 Aug 2018 11:46:22 +0000 Subject: [PATCH] Reset state of all folders before connecting --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 7a945c33fb..2563025e8a 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -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);