From 04d68624ada65bc96ee8b5102f02d9022c7fdbe7 Mon Sep 17 00:00:00 2001 From: cketti Date: Sat, 7 Aug 2021 21:48:01 +0200 Subject: [PATCH] Remove notification when a message was deleted --- .../java/com/fsck/k9/controller/MessagingController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/core/src/main/java/com/fsck/k9/controller/MessagingController.java b/app/core/src/main/java/com/fsck/k9/controller/MessagingController.java index d84f5ec96..716322605 100644 --- a/app/core/src/main/java/com/fsck/k9/controller/MessagingController.java +++ b/app/core/src/main/java/com/fsck/k9/controller/MessagingController.java @@ -2775,6 +2775,11 @@ public class MessagingController { for (MessagingListener messagingListener : getListeners(listener)) { messagingListener.synchronizeMailboxRemovedMessage(account, folderServerId, messageServerId); } + + String accountUuid = account.getUuid(); + long folderId = getFolderIdOrThrow(account, folderServerId); + MessageReference messageReference = new MessageReference(accountUuid, folderId, messageServerId, null); + notificationController.removeNewMailNotification(account, messageReference); } @Override