From c78984796cc6661c0b880f25982d9db949f5502e Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 16 Aug 2024 12:25:20 +0200 Subject: [PATCH] VANISH: update message count --- app/src/main/java/eu/faircode/email/Core.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 9c3dd79efc..f79429c835 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1576,6 +1576,11 @@ class Core { try { imessage.setFlag(Flags.Flag.DELETED, true); deleted.add(imessage); + if (!folder.synchronize || folder.poll || !MessageHelper.hasCapability(ifolder, "IDLE")) { + EntityMessage m = map.get(imessage); + if (m != null && m.uid != null) + EntityOperation.queue(context, folder, EntityOperation.FETCH, m.uid, false, true); + } } catch (MessageRemovedException ex) { Log.w(ex); }