Set ignored for messages in disabled channels

pull/199/head
M66B 4 years ago
parent 8f14ee9240
commit 6fea8eb98a

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

Loading…
Cancel
Save