1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-07 21:37:02 +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 konstantiniiv
parent 186de5d7e5
commit 1359783d6b

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
}
}