RoomList: fix small error in update processing
This commit is contained in:
parent
7c76a74a30
commit
eb00ef3c06
1 changed files with 2 additions and 3 deletions
|
|
@ -77,15 +77,14 @@ class RoomSummaryListProcessor(
|
|||
removeAt(update.index.toInt())
|
||||
}
|
||||
is RoomListEntriesUpdate.Reset -> {
|
||||
Timber.v("Reset size: ${update.values.size}")
|
||||
clear()
|
||||
addAll(update.values.map { buildSummaryForRoomListEntry(it) })
|
||||
}
|
||||
RoomListEntriesUpdate.PopBack -> {
|
||||
removeFirstOrNull()
|
||||
removeLastOrNull()
|
||||
}
|
||||
RoomListEntriesUpdate.PopFront -> {
|
||||
removeLastOrNull()
|
||||
removeFirstOrNull()
|
||||
}
|
||||
RoomListEntriesUpdate.Clear -> {
|
||||
clear()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue