diff --git a/apps/android/app/src/main/java/chat/simplex/app/views/chat/ChatView.kt b/apps/android/app/src/main/java/chat/simplex/app/views/chat/ChatView.kt index d509cd97b3..6e0d1fa6c1 100644 --- a/apps/android/app/src/main/java/chat/simplex/app/views/chat/ChatView.kt +++ b/apps/android/app/src/main/java/chat/simplex/app/views/chat/ChatView.kt @@ -138,6 +138,7 @@ fun ChatInfoToolbar(chat: Chat, back: () -> Unit, info: () -> Unit) { @Composable fun ChatItemsList(chatItems: List) { val listState = rememberLazyListState() + var scrolled = false val scope = rememberCoroutineScope() val uriHandler = LocalUriHandler.current LazyColumn(state = listState) { @@ -145,8 +146,9 @@ fun ChatItemsList(chatItems: List) { ChatItemView(cItem, uriHandler) } val len = chatItems.count() - if (len > 1) { + if (len > 1 && !scrolled) { scope.launch { + scrolled = true listState.animateScrollToItem(len - 1) } }