Fix keyboard not auto-opening when editing a message (#6412)

* fix: auto-open keyboard when editing a message

* fix: show keyboard on focused editor view instead of root view
This commit is contained in:
Gianluca Iavicoli
2026-03-23 10:54:59 +01:00
committed by GitHub
parent e1e82cef08
commit a30aed6a21
2 changed files with 10 additions and 8 deletions

View File

@@ -706,14 +706,14 @@ class MessageComposerPresenter(
val draft = createDraftFromState(markdownTextEditorState, richTextEditorState)
updateDraft(draft, isVolatile = true).join()
}
setText(newComposerMode.content, markdownTextEditorState, richTextEditorState)
setText(newComposerMode.content, markdownTextEditorState, richTextEditorState, requestFocus = true)
}
is MessageComposerMode.EditCaption -> {
if (currentComposerMode.isEditing.not()) {
val draft = createDraftFromState(markdownTextEditorState, richTextEditorState)
updateDraft(draft, isVolatile = true).join()
}
setText(newComposerMode.content, markdownTextEditorState, richTextEditorState)
setText(newComposerMode.content, markdownTextEditorState, richTextEditorState, requestFocus = true)
}
else -> {
// When coming from edit, just clear the composer as it'd be weird to reset a volatile draft in this scenario.