From eb00ef3c06312599abe0835e3e4b5c7cce9cf4c0 Mon Sep 17 00:00:00 2001 From: ganfra Date: Mon, 26 Jun 2023 22:58:54 +0200 Subject: [PATCH] RoomList: fix small error in update processing --- .../libraries/matrix/impl/room/RoomSummaryListProcessor.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSummaryListProcessor.kt b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSummaryListProcessor.kt index 8e4f608286..5ddb53421c 100644 --- a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSummaryListProcessor.kt +++ b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSummaryListProcessor.kt @@ -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()