1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Always keep the inbox

This commit is contained in:
M66B 2021-10-03 07:31:39 +02:00
parent c2ac760c29
commit 7094743d23

View file

@ -2326,6 +2326,8 @@ class Core {
Log.i("Delete local count=" + local.size()); Log.i("Delete local count=" + local.size());
for (String name : local.keySet()) { for (String name : local.keySet()) {
EntityFolder folder = local.get(name); EntityFolder folder = local.get(name);
if (EntityFolder.INBOX.equals(folder.type))
continue;
List<EntityFolder> childs = parentFolders.get(name); List<EntityFolder> childs = parentFolders.get(name);
if (EntityFolder.USER.equals(folder.type) || if (EntityFolder.USER.equals(folder.type) ||
childs == null || childs.size() == 0) { childs == null || childs.size() == 0) {