Browse Source

RoomList: fix small error in update processing

jonny/proxy
ganfra 1 year ago
parent
commit
eb00ef3c06
  1. 5
      libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSummaryListProcessor.kt

5
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSummaryListProcessor.kt

@ -77,15 +77,14 @@ class RoomSummaryListProcessor( @@ -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…
Cancel
Save