Remove unreadRoomId from summarized notification state

This commit is contained in:
Jaiwanth
2021-06-30 10:53:46 +05:30
parent 746b11b24d
commit 1b21c8f732
4 changed files with 28 additions and 16 deletions
@@ -54,7 +54,7 @@ export class SpaceNotificationState extends NotificationState {
}
public getFirstRoomWithNotifications() {
return this.rooms.find((room) => room._notificationCounts.total > 0).roomId;
return this.rooms.find((room) => room.getUnreadNotificationCount() > 0).roomId;
}
public destroy() {