Improve formatting
This commit is contained in:
parent
636389d584
commit
ee59fe660f
@ -177,13 +177,11 @@ class UnreadMessagesSharedViewModel @AssistedInject constructor(@Assisted initia
|
|||||||
CountInfo(
|
CountInfo(
|
||||||
homeCount = counts,
|
homeCount = counts,
|
||||||
otherCount = RoomAggregateNotificationCount(
|
otherCount = RoomAggregateNotificationCount(
|
||||||
rootCounts.fold(0, { acc, rs ->
|
notificationCount = rootCounts.fold(0, { acc, rs -> acc + rs.notificationCount })
|
||||||
acc + rs.notificationCount
|
+ (counts.notificationCount.takeIf { selectedSpace != null } ?: 0)
|
||||||
}) + (counts.notificationCount.takeIf { selectedSpace != null } ?: 0)
|
|
||||||
+ spaceInviteCount,
|
+ spaceInviteCount,
|
||||||
rootCounts.fold(0, { acc, rs ->
|
highlightCount = rootCounts.fold(0, { acc, rs -> acc + rs.highlightCount })
|
||||||
acc + rs.highlightCount
|
+ (counts.highlightCount.takeIf { selectedSpace != null } ?: 0)
|
||||||
}) + (counts.highlightCount.takeIf { selectedSpace != null } ?: 0)
|
|
||||||
+ spaceInviteCount
|
+ spaceInviteCount
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user