Fix wrong notification count calculation

Change-Id: Ia136933c3afe60a99362076566b6a5991f4a1ac7
This commit is contained in:
SpiritCroc 2021-09-22 22:31:27 +02:00
parent ad8751cd99
commit e1546cec06

View file

@ -400,7 +400,7 @@ internal class RoomSummaryUpdater @Inject constructor(
highlightCount += it.highlightCount
notificationCount += it.notificationCount
unreadCount += it.unreadCount
aggregateNotificationCount += min(it.highlightCount, 1)
aggregateNotificationCount += min(it.notificationCount, 1)
aggregateUnreadCount += min(it.unreadCount, 1)
markedUnreadCount += if (it.markedUnread) 1 else 0
}