Ctrl+C, non-E2E media: copy HTTP URL, not filename
This commit is contained in:
parent
99017adc1d
commit
67b7821fae
|
@ -232,8 +232,13 @@ Rectangle {
|
||||||
const source = JSON.parse(model.source)
|
const source = JSON.parse(model.source)
|
||||||
|
|
||||||
Clipboard.text =
|
Clipboard.text =
|
||||||
|
model.media_http_url &&
|
||||||
|
utils.isEmptyObject(JSON.parse(model.media_crypt_dict)) ?
|
||||||
|
model.media_http_url :
|
||||||
|
|
||||||
"body" in source ?
|
"body" in source ?
|
||||||
source.body :
|
source.body :
|
||||||
|
|
||||||
utils.stripHtmlTags(utils.processedEventText(model))
|
utils.stripHtmlTags(utils.processedEventText(model))
|
||||||
|
|
||||||
return
|
return
|
||||||
|
@ -245,8 +250,13 @@ Rectangle {
|
||||||
const source = JSON.parse(model.source)
|
const source = JSON.parse(model.source)
|
||||||
|
|
||||||
contents.push(
|
contents.push(
|
||||||
|
model.media_http_url &&
|
||||||
|
utils.isEmptyObject(JSON.parse(model.media_crypt_dict)) ?
|
||||||
|
model.media_http_url :
|
||||||
|
|
||||||
"body" in source ?
|
"body" in source ?
|
||||||
source.body :
|
source.body :
|
||||||
|
|
||||||
utils.stripHtmlTags(utils.processedEventText(model))
|
utils.stripHtmlTags(utils.processedEventText(model))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user