RoomListFilters: some minor adjustments
This commit is contained in:
parent
0eacdfe565
commit
4551f179c3
2 changed files with 11 additions and 1 deletions
|
|
@ -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)
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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 ->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue