From 6fea8eb98a8a90c3c9c67d3fe39707b7d0f5feaf Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 8 Jun 2021 16:21:04 +0200 Subject: [PATCH] Set ignored for messages in disabled channels --- app/src/main/java/eu/faircode/email/Core.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 27ec6e319f..2ff06db70a 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -3893,6 +3893,7 @@ class Core { if (channelId != null) { NotificationChannel channel = nm.getNotificationChannel(channelId); if (channel != null && channel.getImportance() == NotificationManager.IMPORTANCE_NONE) { + db.message().setMessageUiIgnored(message.id, true); Log.i("Notify disabled=" + message.id + " channel=" + channelId); continue; }