diff --git a/app/src/main/kotlin/io/flamenet/messenger/app/ChatScreens.kt b/app/src/main/kotlin/io/flamenet/messenger/app/ChatScreens.kt index 632a4bd..a5ae665 100644 --- a/app/src/main/kotlin/io/flamenet/messenger/app/ChatScreens.kt +++ b/app/src/main/kotlin/io/flamenet/messenger/app/ChatScreens.kt @@ -1263,6 +1263,10 @@ fun ColumnScope.ChatScreen( var draft by remember { mutableStateOf("") } val listState = rememberLazyListState() + // Open AT the newest message — a jump, not a tour of the history. + LaunchedEffect(Unit) { + if (chat.lines.isNotEmpty()) listState.scrollToItem(chat.lines.lastIndex) + } // Follow the conversation as it grows. Without this a reply arrives // off-screen and the app looks like it did nothing. LaunchedEffect(chat.lines.size) {