Commit 1a31c890 authored by LNJ's avatar LNJ 💬

ChatMessage: Do not display media URLs, Add URL copy action

Closes #297.
parent 850cc465
Pipeline #5543 passed with stages
in 47 minutes and 6 seconds
......@@ -140,6 +140,12 @@ RowLayout {
enabled: kaidan.messageModel.canCorrectMessage(msgId)
onTriggered: root.messageEditRequested(msgId, messageBody)
}
Controls.MenuItem {
text: qsTr("Copy download URL")
enabled: mediaGetUrl
onTriggered: kaidan.utils.copyToClipboard(mediaGetUrl)
}
}
}
......@@ -226,8 +232,7 @@ RowLayout {
// message body
Controls.Label {
id: messageLabel
visible: messageBody !== ""
visible: messageBody !== "" && messageBody !== mediaGetUrl
text: kaidan.utils.formatMessage(messageBody)
textFormat: Text.StyledText
wrapMode: Text.Wrap
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment