mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 12:30:07 +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
|
highlightCount += it.highlightCount
|
||||||
notificationCount += it.notificationCount
|
notificationCount += it.notificationCount
|
||||||
unreadCount += it.unreadCount
|
unreadCount += it.unreadCount
|
||||||
aggregateNotificationCount += min(it.highlightCount, 1)
|
aggregateNotificationCount += min(it.notificationCount, 1)
|
||||||
aggregateUnreadCount += min(it.unreadCount, 1)
|
aggregateUnreadCount += min(it.unreadCount, 1)
|
||||||
markedUnreadCount += if (it.markedUnread) 1 else 0
|
markedUnreadCount += if (it.markedUnread) 1 else 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue