Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neil Alexander
element-android
Commits
03f2b516
Commit
03f2b516
authored
May 12, 2021
by
Benoit Marty
Browse files
Please the code quality checker
parent
56d0699b
Changes
2
Hide whitespace changes
Inline
Side-by-side
vector/src/main/java/im/vector/app/features/home/UnreadMessagesSharedViewModel.kt
View file @
03f2b516
...
...
@@ -129,9 +129,9 @@ class UnreadMessagesSharedViewModel @AssistedInject constructor(@Assisted initia
is
RoomGroupingMethod
.
BySpace
->
{
val
selectedSpace
=
appStateHandler
.
safeActiveSpaceId
()
val
inviteCount
=
session
.
getRoomSummaries
(
roomSummaryQueryParams
{
this
.
memberships
=
listOf
(
Membership
.
INVITE
)
}
).
size
val
inviteCount
=
session
.
getRoomSummaries
(
roomSummaryQueryParams
{
this
.
memberships
=
listOf
(
Membership
.
INVITE
)
}
).
size
val
totalCount
=
session
.
getNotificationCountForRooms
(
roomSummaryQueryParams
{
...
...
vector/src/main/java/im/vector/app/features/spaces/SpacesListViewModel.kt
View file @
03f2b516
...
...
@@ -119,9 +119,9 @@ class SpacesListViewModel @AssistedInject constructor(@Assisted initialState: Sp
.
throttleFirst
(
300
,
TimeUnit
.
MILLISECONDS
)
.
observeOn
(
Schedulers
.
computation
())
.
subscribe
{
val
inviteCount
=
session
.
getRoomSummaries
(
roomSummaryQueryParams
{
this
.
memberships
=
listOf
(
Membership
.
INVITE
)
}
).
size
val
inviteCount
=
session
.
getRoomSummaries
(
roomSummaryQueryParams
{
this
.
memberships
=
listOf
(
Membership
.
INVITE
)
}
).
size
val
totalCount
=
session
.
getNotificationCountForRooms
(
roomSummaryQueryParams
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment