RoomListFilters: some minor adjustments
This commit is contained in:
parent
3d8efecd7f
commit
45f23d537d
2 changed files with 11 additions and 1 deletions
|
|
@ -275,7 +275,11 @@ private fun RoomListContent(
|
|||
}
|
||||
}
|
||||
if (state.displayEmptyState) {
|
||||
EmptyRoomListView(onCreateRoomClicked)
|
||||
if (state.filtersState.hasAnyFilterSelected) {
|
||||
// TODO add empty state for filtered rooms
|
||||
} else {
|
||||
EmptyRoomListView(onCreateRoomClicked)
|
||||
}
|
||||
}
|
||||
MigrationScreenView(isMigrating = state.displayMigrationStatus)
|
||||
},
|
||||
|
|
|
|||
|
|
@ -68,6 +68,12 @@ class RoomListFiltersPresenter @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
LaunchedEffect(isFeatureEnabled) {
|
||||
if (!isFeatureEnabled) {
|
||||
updateFilters(emptySet())
|
||||
}
|
||||
}
|
||||
|
||||
LaunchedEffect(selectedFilters) {
|
||||
val allRoomsFilter = MatrixRoomListFilter.All(
|
||||
selectedFilters.map { roomListFilter ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue