Skip to content

Commit

Permalink
fix: Chat Input isn't focused after editing a message
Browse files Browse the repository at this point in the history
Fixes #8966
  • Loading branch information
caybro committed Jan 6, 2023
1 parent 01f2e64 commit b086d43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/app/AppLayouts/Chat/views/ChatContentView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ ColumnLayout {
onOpenStickerPackPopup: {
root.openStickerPackPopup(stickerPackId);
}
onEditModeChanged: if (!editModeOn) chatInput.forceInputActiveFocus()
}

Item {
Expand Down
2 changes: 2 additions & 0 deletions ui/app/AppLayouts/Chat/views/ChatMessagesView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Item {

signal openStickerPackPopup(string stickerPackId)
signal showReplyArea(string messageId, string author)
signal editModeChanged(bool editModeOn)

QtObject {
id: d
Expand Down Expand Up @@ -272,6 +273,7 @@ Item {
sticker: model.sticker
stickerPack: model.stickerPack
editModeOn: model.editMode
onEditModeOnChanged: root.editModeChanged(editModeOn)
isEdited: model.isEdited
linkUrls: model.links
messageAttachments: model.messageAttachments
Expand Down

0 comments on commit b086d43

Please sign in to comment.