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 155fd4ab81
commit e6fab7eee2
2 changed files with 4 additions and 2 deletions

View file

@ -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> {