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)
|
||||
|
||||
Clipboard.text =
|
||||
model.media_http_url &&
|
||||
utils.isEmptyObject(JSON.parse(model.media_crypt_dict)) ?
|
||||
model.media_http_url :
|
||||
|
||||
"body" in source ?
|
||||
source.body :
|
||||
|
||||
utils.stripHtmlTags(utils.processedEventText(model))
|
||||
|
||||
return
|
||||
@ -245,8 +250,13 @@ Rectangle {
|
||||
const source = JSON.parse(model.source)
|
||||
|
||||
contents.push(
|
||||
model.media_http_url &&
|
||||
utils.isEmptyObject(JSON.parse(model.media_crypt_dict)) ?
|
||||
model.media_http_url :
|
||||
|
||||
"body" in source ?
|
||||
source.body :
|
||||
|
||||
utils.stripHtmlTags(utils.processedEventText(model))
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user