Ensure ShortcutsHandler get all the joined rooms #4168
This commit is contained in:
parent
76314b9d87
commit
f166348a68
@ -43,13 +43,12 @@ class ShortcutsHandler @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
val session = activeSessionHolder.getSafeActiveSession() ?: return Disposables.empty()
|
val session = activeSessionHolder.getSafeActiveSession() ?: return Disposables.empty()
|
||||||
return session
|
return session.getRoomSummariesLive(
|
||||||
.getPagedRoomSummariesLive(
|
roomSummaryQueryParams {
|
||||||
roomSummaryQueryParams {
|
memberships = listOf(Membership.JOIN)
|
||||||
memberships = listOf(Membership.JOIN)
|
},
|
||||||
},
|
sortOrder = RoomSortOrder.PRIORITY_AND_ACTIVITY
|
||||||
sortOrder = RoomSortOrder.PRIORITY_AND_ACTIVITY
|
)
|
||||||
)
|
|
||||||
.asObservable()
|
.asObservable()
|
||||||
.subscribe { rooms ->
|
.subscribe { rooms ->
|
||||||
// Remove dead shortcuts (i.e. deleted rooms)
|
// Remove dead shortcuts (i.e. deleted rooms)
|
||||||
|
Loading…
Reference in New Issue
Block a user