Event context menu: copy HTTP media URL, not MXC

This commit is contained in:
miruka 2020-07-20 19:58:44 -04:00
parent 2fb4ad5eae
commit 0cd2678797

View File

@ -210,7 +210,12 @@ HColumnLayout {
qsTr("Copy audio address") qsTr("Copy audio address")
visible: Boolean(text) visible: Boolean(text)
onTriggered: Clipboard.text = contextMenu.media[1] onTriggered: py.callClientCoro(
chat.userId,
"mxc_to_http",
[contextMenu.media[1]],
httpUrl => Clipboard.text = httpUrl,
)
} }
HMenuItem { HMenuItem {