diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt index bc9d1cf91a..c36f5338dd 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt @@ -66,6 +66,7 @@ object ChatModel { // current chat val chatId = mutableStateOf(null) val chatItems = mutableStateOf(SnapshotStateList()) + // chatItemId, SectionArea val chatItemsSectionArea = mutableMapOf() // rhId, chatId val deletedChats = mutableStateOf>>(emptyList()) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatSections.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatSections.kt index 4bed8da7a3..520173f8fc 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatSections.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatSections.kt @@ -25,6 +25,7 @@ data class ChatSectionAreaBoundary ( data class ChatSection ( val items: MutableList, val boundary: ChatSectionAreaBoundary, + // chatItemId, index in rendered LazyColumn val itemPositions: MutableMap )