RoomList : rework a bit the api and make usage of entriesWithDynamicAdapters

This commit is contained in:
ganfra 2023-11-22 18:06:19 +01:00
parent 68c4f1e6bc
commit 0fb4eb005c
17 changed files with 317 additions and 213 deletions

View file

@ -105,7 +105,7 @@ class EditDefaultNotificationSettingPresenter @AssistedInject constructor(
}
private fun CoroutineScope.observeRoomSummaries(roomsWithUserDefinedMode: MutableState<List<RoomSummary.Filled>>) {
roomListService.allRooms()
roomListService.allRooms
.summaries
.onEach {
updateRoomsWithUserDefinedMode(it, roomsWithUserDefinedMode)