fix(edit): fix edit message not sending mentions correctly
Fixes #10074
This commit is contained in:
parent
14c264e350
commit
0424715810
|
@ -59,7 +59,15 @@ Item {
|
|||
size: StatusBaseButton.Size.Small
|
||||
enabled: !!chatInputLoader.item && chatInputLoader.item.messageText.trim().length > 0
|
||||
onClicked: {
|
||||
editCompleted(!chatInputLoader.item ? "" : chatInputLoader.item.messageText)
|
||||
let text = ""
|
||||
if (chatInputLoader.item) {
|
||||
if (chatInputLoader.item.getTextWithPublicKeys) {
|
||||
text = chatInputLoader.item.getTextWithPublicKeys()
|
||||
} else {
|
||||
text = chatInputLoader.item.messageText
|
||||
}
|
||||
}
|
||||
editCompleted(text)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -479,9 +479,7 @@ Loader {
|
|||
delegate.editCancelledHandler()
|
||||
}
|
||||
|
||||
onEditCompleted: {
|
||||
delegate.editCompletedHandler(newMsgText)
|
||||
}
|
||||
onEditCompleted: delegate.editCompletedHandler(newMsgText)
|
||||
|
||||
onImageClicked: {
|
||||
switch (mouse.button) {
|
||||
|
@ -679,9 +677,7 @@ Loader {
|
|||
chatType: root.messageStore.chatType
|
||||
isEdit: true
|
||||
|
||||
onSendMessage: {
|
||||
delegate.editCompletedHandler(editTextInput.textInput.text)
|
||||
}
|
||||
onSendMessage: delegate.editCompletedHandler(editTextInput.getTextWithPublicKeys())
|
||||
|
||||
Component.onCompleted: {
|
||||
parseMessage(root.messageText);
|
||||
|
|
Loading…
Reference in New Issue