Browse Source

Reset state of all folders before connecting

main
M66B 6 years ago
parent
commit
b41060ffde
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 2
- 0
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -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…
Cancel
Save