From 14b4bff4771cb7ba6db0b1dad5a9b4c130262079 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 19 Jul 2021 18:56:15 +0200 Subject: [PATCH] Use the interface power! --- .../vector/app/features/home/room/list/RoomListViewModel.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/list/RoomListViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/list/RoomListViewModel.kt index 0c4b9a9561..f807b34889 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/list/RoomListViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/list/RoomListViewModel.kt @@ -136,7 +136,7 @@ class RoomListViewModel @Inject constructor( updatableQuery = it }, vectorPreferences.labsSpacesOnlyOrphansInHome() - ).buildSections(initialState.displayMode) + ) } else { RoomListSectionBuilderGroup( session, @@ -150,8 +150,9 @@ class RoomListViewModel @Inject constructor( { updatableQuery = it } - ).buildSections(initialState.displayMode) + ) } + .buildSections(initialState.displayMode) } override fun handle(action: RoomListAction) {