RoomList: re-add placeholders
This commit is contained in:
parent
1509d82f3f
commit
3de51af4b1
1 changed files with 4 additions and 1 deletions
|
|
@ -71,7 +71,10 @@ class RoomListPresenter @Inject constructor(
|
|||
}
|
||||
|
||||
private suspend fun updateFilteredRoomSummaries(roomSummaries: List<RoomSummary>?, filter: String): ImmutableList<RoomListRoomSummary> {
|
||||
val mappedRoomSummaries = mapRoomSummaries(roomSummaries.orEmpty())
|
||||
if (roomSummaries.isNullOrEmpty()) {
|
||||
return RoomListRoomSummaryPlaceholders.createFakeList(16).toImmutableList()
|
||||
}
|
||||
val mappedRoomSummaries = mapRoomSummaries(roomSummaries)
|
||||
return if (filter.isEmpty()) {
|
||||
mappedRoomSummaries
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue