From dc5a15a8bde54f7798d66075a08bb1d4236f1343 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 7 Aug 2020 20:58:42 +0200 Subject: [PATCH] Update folder stats after move --- app/src/main/java/eu/faircode/email/Core.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index a21d210e49..1103fce4f9 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1014,6 +1014,9 @@ class Core { } catch (MessageRemovedException ignored) { } ifolder.expunge(); + } else { + int count = ifolder.getMessageCount(); + db.folder().setFolderTotal(folder.id, count < 0 ? null : count); } // Fetch appended/copied when needed