mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Changes thread notifications saved to entity from sum to size
This commit is contained in:
parent
ebd8461724
commit
c2ae75d9bd
1 changed files with 4 additions and 4 deletions
|
@ -114,12 +114,12 @@ internal class RoomSummaryUpdater @Inject constructor(
|
|||
roomSummaryEntity.notificationCount = unreadNotifications?.notificationCount ?: 0
|
||||
|
||||
roomSummaryEntity.threadHighlightCount = unreadThreadNotifications
|
||||
?.mapNotNull { it.value.highlightCount }
|
||||
?.sum()
|
||||
?.map { it.value.highlightCount.takeIf { count -> (count ?: 0) > 0 } }
|
||||
?.size
|
||||
?: 0
|
||||
roomSummaryEntity.threadNotificationCount = unreadThreadNotifications
|
||||
?.mapNotNull { it.value.notificationCount }
|
||||
?.sum()
|
||||
?.map { it.value.notificationCount.takeIf { count -> (count ?: 0) > 0 } }
|
||||
?.size
|
||||
?: 0
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue