mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Ensure ShortcutsHandler get all the joined rooms #4168
This commit is contained in:
parent
76314b9d87
commit
f166348a68
1 changed files with 6 additions and 7 deletions
|
@ -43,13 +43,12 @@ class ShortcutsHandler @Inject constructor(
|
|||
}
|
||||
|
||||
val session = activeSessionHolder.getSafeActiveSession() ?: return Disposables.empty()
|
||||
return session
|
||||
.getPagedRoomSummariesLive(
|
||||
roomSummaryQueryParams {
|
||||
memberships = listOf(Membership.JOIN)
|
||||
},
|
||||
sortOrder = RoomSortOrder.PRIORITY_AND_ACTIVITY
|
||||
)
|
||||
return session.getRoomSummariesLive(
|
||||
roomSummaryQueryParams {
|
||||
memberships = listOf(Membership.JOIN)
|
||||
},
|
||||
sortOrder = RoomSortOrder.PRIORITY_AND_ACTIVITY
|
||||
)
|
||||
.asObservable()
|
||||
.subscribe { rooms ->
|
||||
// Remove dead shortcuts (i.e. deleted rooms)
|
||||
|
|
Loading…
Reference in a new issue