mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 20:01:55 +00:00
RoomList: fix small error in update processing
This commit is contained in:
+2
-3
@@ -77,15 +77,14 @@ class RoomSummaryListProcessor(
|
|||||||
removeAt(update.index.toInt())
|
removeAt(update.index.toInt())
|
||||||
}
|
}
|
||||||
is RoomListEntriesUpdate.Reset -> {
|
is RoomListEntriesUpdate.Reset -> {
|
||||||
Timber.v("Reset size: ${update.values.size}")
|
|
||||||
clear()
|
clear()
|
||||||
addAll(update.values.map { buildSummaryForRoomListEntry(it) })
|
addAll(update.values.map { buildSummaryForRoomListEntry(it) })
|
||||||
}
|
}
|
||||||
RoomListEntriesUpdate.PopBack -> {
|
RoomListEntriesUpdate.PopBack -> {
|
||||||
removeFirstOrNull()
|
removeLastOrNull()
|
||||||
}
|
}
|
||||||
RoomListEntriesUpdate.PopFront -> {
|
RoomListEntriesUpdate.PopFront -> {
|
||||||
removeLastOrNull()
|
removeFirstOrNull()
|
||||||
}
|
}
|
||||||
RoomListEntriesUpdate.Clear -> {
|
RoomListEntriesUpdate.Clear -> {
|
||||||
clear()
|
clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user