Please the code quality checker

This commit is contained in:
Benoit Marty 2021-05-12 10:17:33 +02:00
parent 56d0699bc7
commit 03f2b516a0
2 changed files with 6 additions and 6 deletions

View File

@ -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 {

View File

@ -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 {