mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-03 03:16:12 +00:00
avoid recompose when revealed is clean
This commit is contained in:
+3
-1
@@ -1019,7 +1019,9 @@ fun BoxWithConstraintsScope.ChatItemsList(
|
||||
snapshotFlow { chatModel.chatId.value }
|
||||
.distinctUntilChanged()
|
||||
.collect {
|
||||
revealedItems.value = setOf()
|
||||
if (revealedItems.value.isNotEmpty()) {
|
||||
revealedItems.value = setOf()
|
||||
}
|
||||
preloadItemsEnabled.value = true
|
||||
val firstUnreadItem = reversedChatItems.findLast { it.isRcvNew }
|
||||
if (firstUnreadItem != null) {
|
||||
|
||||
Reference in New Issue
Block a user