Fix grouped notifications only displaying the latest message (#2956)

`DefaultActiveNotificationsProvider.getNotificationsForSession(sessionId)` had a broken logic for checking a notification's group and retrieving notifications from the same session.
This commit is contained in:
Jorge Martin Espinosa
2024-05-31 10:16:59 +02:00
committed by GitHub
parent c2471693c9
commit 8b85cc0160
2 changed files with 4 additions and 2 deletions
@@ -44,7 +44,7 @@ class DefaultActiveNotificationsProvider @Inject constructor(
}
override fun getNotificationsForSession(sessionId: SessionId): List<StatusBarNotification> {
return notificationManager.activeNotifications.filter { it.groupKey == sessionId.value }
return notificationManager.activeNotifications.filter { it.notification.group == sessionId.value }
}
override fun getMembershipNotificationForSession(sessionId: SessionId): List<StatusBarNotification> {