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 c38df7704f..a90e051eb4 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 @@ -1346,7 +1346,14 @@ fun BoxWithConstraintsScope.ChatItemsList( LaunchedEffect(cItem.id) { scope.launch { delay(600) - markRead(CC.ItemRange(cItem.id, cItem.id), null) + val range = if (sectionItems.mergeCategory != null) { + val firstItem = sectionItems.items.first() + val lastItem = sectionItems.items.last() + CC.ItemRange(lastItem.id, firstItem.id) + } else { + CC.ItemRange(cItem.id, cItem.id) + } + markRead(range, null) } } }