fixing the summary notification displaying when marking rooms as read and no other notifications are showing

This commit is contained in:
Adam Brown 2022-05-23 20:41:32 +01:00
parent 64bce44a12
commit 30453e695d

View File

@ -43,7 +43,7 @@ class NotificationRenderer(
}
notifications.summaryNotification?.let {
if (notifications.delegates.filterIsInstance<NotificationDelegate.Room>().isNotEmpty()) {
if (notifications.delegates.filterIsInstance<NotificationDelegate.Room>().isNotEmpty() && !onlyContainsRemovals) {
log(AppLogTag.NOTIFICATION, "notifying summary")
notificationManager.notify(SUMMARY_NOTIFICATION_ID, it)
}