1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3258 Chats | Fix | Should not scroll to bottom after editing a message (#2478)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Evgenii Kozlov 2025-05-29 10:50:32 +02:00 committed by GitHub
parent 71ab93fc96
commit 6790b13882
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -371,7 +371,11 @@ fun ChatBox(
.clickable {
onMessageSent(text.text, spans)
clearText()
resetScroll()
// Bypass resetScroll in edit mode because editing a message does not require
// resetting the scroll position, unlike sending a new message.
if (mode !is ChatBoxMode.EditMessage) {
resetScroll()
}
showMarkup = false
}
}