mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 09:56:00 +03:00
Fix wrong notification count calculation
Change-Id: Ia136933c3afe60a99362076566b6a5991f4a1ac7
This commit is contained in:
parent
ad8751cd99
commit
e1546cec06
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue