Fix copying non-message single event text
For events with no body in their source, copy Mirage's generated content text.
This commit is contained in:
parent
b79006f2ec
commit
9c4d37f64b
|
@ -300,8 +300,6 @@ HRowLayout {
|
|||
id: linksRepeater
|
||||
|
||||
property EventMediaLoader lastHovered: null
|
||||
property var pr: lastHovered
|
||||
onPrChanged: print("pr changed:", pr)
|
||||
|
||||
model: {
|
||||
const links = JSON.parse(eventDelegate.currentModel.links)
|
||||
|
|
|
@ -95,7 +95,10 @@ HMenu {
|
|||
|
||||
onTriggered: {
|
||||
if (! eventList.selectedCount){
|
||||
Clipboard.text = JSON.parse(event.source).body
|
||||
Clipboard.text =
|
||||
JSON.parse(event.source).body ||
|
||||
utils.stripHtmlTags(utils.processedEventText(event))
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user