1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

chatviewfooter: pre-fill with previous body when editing

Change-Id: Ie2784a689bac5442198bbcfdaed54ff75de4003f
GitLab: #870
This commit is contained in:
Sébastien Blin 2022-10-30 11:44:28 -04:00
parent 90ae50ee5f
commit 61b2bfdee7

View file

@ -83,8 +83,12 @@ Rectangle {
}
function onEditIdChanged() {
if (MessagesAdapter.editId.length > 0)
if (MessagesAdapter.editId.length > 0) {
var editedMessageBody = MessagesAdapter.dataForInteraction(MessagesAdapter.editId, MessageList.Body)
messageBar.textAreaObj.insertText(editedMessageBody)
messageBar.textAreaObj.forceActiveFocus()
}
}
function onReplyToIdChanged() {