Input field fixes

* Message with multiple mentions are not broken in IRC. Fix #267
* Editing a message won't remove mentions anymore
This commit is contained in:
Carl Schwan
2021-02-22 19:09:56 +00:00
parent 1234132a05
commit bb3b3bc088
8 changed files with 57 additions and 18 deletions

View File

@@ -139,7 +139,7 @@ RowLayout {
QQC2.ToolTip.visible: hovered
visible: controlContainer.hovered && author.id === Controller.activeConnection.localUserId && (model.eventType === "emote" || model.eventType === "message")
icon.name: "document-edit"
onClicked: chatTextInput.edit(message, eventId)
onClicked: chatTextInput.edit(message, model.formattedBody, eventId)
}
QQC2.Button {
QQC2.ToolTip.text: i18n("Reply")