From 7094743d23a5a27b715ca098bf26142e65a95414 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 3 Oct 2021 07:31:39 +0200 Subject: [PATCH] Always keep the inbox --- app/src/main/java/eu/faircode/email/Core.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index b05361f61f..8831406254 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2326,6 +2326,8 @@ class Core { Log.i("Delete local count=" + local.size()); for (String name : local.keySet()) { EntityFolder folder = local.get(name); + if (EntityFolder.INBOX.equals(folder.type)) + continue; List childs = parentFolders.get(name); if (EntityFolder.USER.equals(folder.type) || childs == null || childs.size() == 0) {