mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Improve formatting
This commit is contained in:
parent
636389d584
commit
ee59fe660f
1 changed files with 4 additions and 6 deletions
|
@ -177,13 +177,11 @@ class UnreadMessagesSharedViewModel @AssistedInject constructor(@Assisted initia
|
|||
CountInfo(
|
||||
homeCount = counts,
|
||||
otherCount = RoomAggregateNotificationCount(
|
||||
rootCounts.fold(0, { acc, rs ->
|
||||
acc + rs.notificationCount
|
||||
}) + (counts.notificationCount.takeIf { selectedSpace != null } ?: 0)
|
||||
notificationCount = rootCounts.fold(0, { acc, rs -> acc + rs.notificationCount })
|
||||
+ (counts.notificationCount.takeIf { selectedSpace != null } ?: 0)
|
||||
+ spaceInviteCount,
|
||||
rootCounts.fold(0, { acc, rs ->
|
||||
acc + rs.highlightCount
|
||||
}) + (counts.highlightCount.takeIf { selectedSpace != null } ?: 0)
|
||||
highlightCount = rootCounts.fold(0, { acc, rs -> acc + rs.highlightCount })
|
||||
+ (counts.highlightCount.takeIf { selectedSpace != null } ?: 0)
|
||||
+ spaceInviteCount
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue