Changes thread notifications saved to entity from sum to size
This commit is contained in:
parent
ebd8461724
commit
c2ae75d9bd
@ -114,12 +114,12 @@ internal class RoomSummaryUpdater @Inject constructor(
|
|||||||
roomSummaryEntity.notificationCount = unreadNotifications?.notificationCount ?: 0
|
roomSummaryEntity.notificationCount = unreadNotifications?.notificationCount ?: 0
|
||||||
|
|
||||||
roomSummaryEntity.threadHighlightCount = unreadThreadNotifications
|
roomSummaryEntity.threadHighlightCount = unreadThreadNotifications
|
||||||
?.mapNotNull { it.value.highlightCount }
|
?.map { it.value.highlightCount.takeIf { count -> (count ?: 0) > 0 } }
|
||||||
?.sum()
|
?.size
|
||||||
?: 0
|
?: 0
|
||||||
roomSummaryEntity.threadNotificationCount = unreadThreadNotifications
|
roomSummaryEntity.threadNotificationCount = unreadThreadNotifications
|
||||||
?.mapNotNull { it.value.notificationCount }
|
?.map { it.value.notificationCount.takeIf { count -> (count ?: 0) > 0 } }
|
||||||
?.sum()
|
?.size
|
||||||
?: 0
|
?: 0
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user