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:
parent
186de5d7e5
commit
1359783d6b
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue