Remove 'new message' notification when user deletes the message
We already handled the case where the deletion was synced from the server. This handles the case where the user locally deletes the message.
@@ -2061,6 +2061,8 @@ public class MessagingController {
List<LocalMessage> syncedMessages = new ArrayList<>();
List<String> syncedMessageUids = new ArrayList<>();
for (LocalMessage message : messages) {
+ notificationController.removeNewMailNotification(account, message.makeMessageReference());
+
String uid = message.getUid();
if (uid.startsWith(K9.LOCAL_UID_PREFIX)) {
localOnlyMessages.add(message);
