Ctrl+C, non-E2E media: copy HTTP URL, not filename

This commit is contained in:
miruka 2020-07-20 23:17:51 -04:00
parent 99017adc1d
commit 67b7821fae

View File

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