From d03fc53151dd23495d1f379b443b4c86205b996f Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Sat, 2 Nov 2024 12:14:55 +0700 Subject: [PATCH] one more place --- .../kotlin/chat/simplex/common/views/chat/ChatView.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt index b10ddd82b4..1942843f1d 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt @@ -1382,7 +1382,7 @@ fun BoxScope.ChatItemsList( for (area in sections.value) { for ((sIdx, section) in area.items.withIndex()) { if (section.revealed) { - itemsIndexed(section.items, key = { _, item -> (item.id to item.meta.createdAt.toEpochMilliseconds()).toString() }) { i, cItem -> + itemsIndexed(section.items, key = { _, item -> item.id to item.meta.createdAt.toEpochMilliseconds() }) { i, cItem -> // index here is just temporary, should be removed at all or put in the section items val prevItem = area.getPreviousShownItem(sIdx, i) val nextItem = area.getNextShownItem(sIdx, i) @@ -1390,7 +1390,7 @@ fun BoxScope.ChatItemsList( } } else { val item = section.items.first() - item(key = { (item.id to item.meta.createdAt.toEpochMilliseconds()).toString() }) { + item(key = item.id to item.meta.createdAt.toEpochMilliseconds()) { // here you make one collapsed item from multiple items (should be already in section items) val prevItem = area.getPreviousShownItem(sIdx, section.items.lastIndex) val nextItem = area.getNextShownItem(sIdx, section.items.lastIndex)