Fix copying selected non-message events
This commit is contained in:
parent
c03bf32a7b
commit
ff8fd01eb1
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user