Set ignored for messages in disabled channels

This commit is contained in:
M66B 2021-06-08 16:21:04 +02:00
parent 8f14ee9240
commit 6fea8eb98a
1 changed files with 1 additions and 0 deletions

View File

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