android: fix showing empty notification (#4237)

* android: fix showing empty notification

* fix desktop concurrent notifications
This commit is contained in:
Stanislav Dmitrenko
2024-05-28 14:04:23 +07:00
committed by GitHub
parent b58ccedf23
commit da1cad96fc
2 changed files with 27 additions and 12 deletions
@@ -77,7 +77,7 @@ object NtfManager {
val msgNtfs = manager.activeNotifications.filter { ntf ->
ntf.notification.channelId == MessageChannel
}
if (msgNtfs.count() == 1) {
if (msgNtfs.size <= 1) {
// Have a group notification with no children so cancel it
manager.cancel(0)
}