Please the code quality checker
This commit is contained in:
parent
56d0699bc7
commit
03f2b516a0
@ -129,9 +129,9 @@ class UnreadMessagesSharedViewModel @AssistedInject constructor(@Assisted initia
|
|||||||
is RoomGroupingMethod.BySpace -> {
|
is RoomGroupingMethod.BySpace -> {
|
||||||
val selectedSpace = appStateHandler.safeActiveSpaceId()
|
val selectedSpace = appStateHandler.safeActiveSpaceId()
|
||||||
|
|
||||||
val inviteCount = session.getRoomSummaries(roomSummaryQueryParams {
|
val inviteCount = session.getRoomSummaries(
|
||||||
this.memberships = listOf(Membership.INVITE)
|
roomSummaryQueryParams { this.memberships = listOf(Membership.INVITE) }
|
||||||
}).size
|
).size
|
||||||
|
|
||||||
val totalCount = session.getNotificationCountForRooms(
|
val totalCount = session.getNotificationCountForRooms(
|
||||||
roomSummaryQueryParams {
|
roomSummaryQueryParams {
|
||||||
|
@ -119,9 +119,9 @@ class SpacesListViewModel @AssistedInject constructor(@Assisted initialState: Sp
|
|||||||
.throttleFirst(300, TimeUnit.MILLISECONDS)
|
.throttleFirst(300, TimeUnit.MILLISECONDS)
|
||||||
.observeOn(Schedulers.computation())
|
.observeOn(Schedulers.computation())
|
||||||
.subscribe {
|
.subscribe {
|
||||||
val inviteCount = session.getRoomSummaries(roomSummaryQueryParams {
|
val inviteCount = session.getRoomSummaries(
|
||||||
this.memberships = listOf(Membership.INVITE)
|
roomSummaryQueryParams { this.memberships = listOf(Membership.INVITE) }
|
||||||
}).size
|
).size
|
||||||
|
|
||||||
val totalCount = session.getNotificationCountForRooms(
|
val totalCount = session.getNotificationCountForRooms(
|
||||||
roomSummaryQueryParams {
|
roomSummaryQueryParams {
|
||||||
|
Loading…
Reference in New Issue
Block a user