Fix copying selected non-message events

This commit is contained in:
miruka 2020-03-27 05:38:08 -04:00
parent c03bf32a7b
commit ff8fd01eb1

View File

@ -145,7 +145,13 @@ Rectangle {
const contents = []
for (const model of eventList.getSortedChecked()) {
contents.push(JSON.parse(model.source).body)
const source = JSON.parse(model.source)
contents.push(
"body" in source ?
source.body :
utils.stripHtmlTags(utils.processedEventText(model))
)
}
Clipboard.text = contents.join("\n\n")