diff --git a/vector/src/main/java/im/vector/app/features/home/room/list/RoomListFragment.kt b/vector/src/main/java/im/vector/app/features/home/room/list/RoomListFragment.kt index d0fae229fa..de04700273 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/list/RoomListFragment.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/list/RoomListFragment.kt @@ -297,7 +297,9 @@ class RoomListFragment @Inject constructor( ) ) concatAdapter.addAdapter(sectionAdapter) - concatAdapter.addAdapter(contentAdapter.adapter) + if (section.isExpanded.value.orTrue()) { + concatAdapter.addAdapter(contentAdapter.adapter) + } } // Add the footer controller