From f166348a68aa863a2d50f222057328e3fe43b82f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 22 Oct 2021 18:10:32 +0200 Subject: [PATCH] Ensure ShortcutsHandler get all the joined rooms #4168 --- .../im/vector/app/features/home/ShortcutsHandler.kt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/ShortcutsHandler.kt b/vector/src/main/java/im/vector/app/features/home/ShortcutsHandler.kt index 04bbd8f191..89e431cc59 100644 --- a/vector/src/main/java/im/vector/app/features/home/ShortcutsHandler.kt +++ b/vector/src/main/java/im/vector/app/features/home/ShortcutsHandler.kt @@ -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)