Merge pull request #5546 from k9mail/remove_notification_for_deleted_message

Remove notification when a message is removed from a folder
This commit is contained in:
cketti 2021-08-09 14:46:59 +02:00 committed by GitHub
commit bb4baa1630
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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