android: fix showing empty notification (#4237)

* android: fix showing empty notification

* fix desktop concurrent notifications
This commit is contained in:
Stanislav Dmitrenko authored and GitHub committed 2024-05-28 08:04:23 +01:00
1 parent b58ccedf23
commit da1cad96fc
2 files changed
+27 -12

No files matched your search

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