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:
miruka 2020-09-02 10:50:09 -04:00
parent b79006f2ec
commit 9c4d37f64b
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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
}