mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
RoomListFilters: some minor adjustments
This commit is contained in:
+5
-1
@@ -275,7 +275,11 @@ private fun RoomListContent(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (state.displayEmptyState) {
|
if (state.displayEmptyState) {
|
||||||
EmptyRoomListView(onCreateRoomClicked)
|
if (state.filtersState.hasAnyFilterSelected) {
|
||||||
|
// TODO add empty state for filtered rooms
|
||||||
|
} else {
|
||||||
|
EmptyRoomListView(onCreateRoomClicked)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
MigrationScreenView(isMigrating = state.displayMigrationStatus)
|
MigrationScreenView(isMigrating = state.displayMigrationStatus)
|
||||||
},
|
},
|
||||||
|
|||||||
+6
@@ -68,6 +68,12 @@ class RoomListFiltersPresenter @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LaunchedEffect(isFeatureEnabled) {
|
||||||
|
if (!isFeatureEnabled) {
|
||||||
|
updateFilters(emptySet())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LaunchedEffect(selectedFilters) {
|
LaunchedEffect(selectedFilters) {
|
||||||
val allRoomsFilter = MatrixRoomListFilter.All(
|
val allRoomsFilter = MatrixRoomListFilter.All(
|
||||||
selectedFilters.map { roomListFilter ->
|
selectedFilters.map { roomListFilter ->
|
||||||
|
|||||||
Reference in New Issue
Block a user