RoomList : rework a bit the api and make usage of entriesWithDynamicAdapters
This commit is contained in:
parent
68c4f1e6bc
commit
0fb4eb005c
17 changed files with 317 additions and 213 deletions
|
|
@ -45,7 +45,7 @@ class DefaultInviteStateDataSource @Inject constructor(
|
|||
override fun inviteState(): InvitesState {
|
||||
val invites by client
|
||||
.roomListService
|
||||
.invites()
|
||||
.invites
|
||||
.summaries
|
||||
.collectAsState()
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class RoomListDataSource @Inject constructor(
|
|||
|
||||
fun launchIn(coroutineScope: CoroutineScope) {
|
||||
roomListService
|
||||
.allRooms()
|
||||
.allRooms
|
||||
.summaries
|
||||
.onEach { roomSummaries ->
|
||||
replaceWith(roomSummaries)
|
||||
|
|
@ -106,7 +106,7 @@ class RoomListDataSource @Inject constructor(
|
|||
notificationSettingsService.notificationSettingsChangeFlow
|
||||
.debounce(0.5.seconds)
|
||||
.onEach {
|
||||
roomListService.rebuildRoomSummaries()
|
||||
roomListService.allRooms.rebuildSummaries()
|
||||
}
|
||||
.launchIn(appScope)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue