Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

ensu android: smooth-scroll only on send and keep markdown streaming

Prateek Sunal24894eab4395
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt
index f5f61f6898..d3c7a5b58d 100644
--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt
+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt
@@ -176,7 +176,7 @@ internal fun MessageList(
if (targetIndex >= 0) {
isAutoScrolling = true
try {
- listState.scrollToItem(targetIndex)
+ listState.animateScrollToItem(targetIndex)
} finally {
isAutoScrolling = false
}