fix ( room list) : rebuild with filteredSummaries to avoid bad state in the room list
This commit is contained in:
parent
04a1c00b94
commit
4fb4c4d4a5
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ class RoomListDataSource @Inject constructor(
|
||||||
|
|
||||||
private suspend fun rebuildAllRoomSummaries() {
|
private suspend fun rebuildAllRoomSummaries() {
|
||||||
lock.withLock {
|
lock.withLock {
|
||||||
roomListService.allRooms.summaries.replayCache.firstOrNull()?.let { roomSummaries ->
|
roomListService.allRooms.filteredSummaries.replayCache.firstOrNull()?.let { roomSummaries ->
|
||||||
buildAndEmitAllRooms(roomSummaries, useCache = false)
|
buildAndEmitAllRooms(roomSummaries, useCache = false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue