From 0cd2678797c3d2e4470c3fa3bf789e7d6eaf6fbc Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 20 Jul 2020 19:58:44 -0400 Subject: [PATCH] Event context menu: copy HTTP media URL, not MXC --- src/gui/Pages/Chat/Timeline/EventDelegate.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/Pages/Chat/Timeline/EventDelegate.qml b/src/gui/Pages/Chat/Timeline/EventDelegate.qml index 07fb666d..c9a53342 100644 --- a/src/gui/Pages/Chat/Timeline/EventDelegate.qml +++ b/src/gui/Pages/Chat/Timeline/EventDelegate.qml @@ -210,7 +210,12 @@ HColumnLayout { qsTr("Copy audio address") 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 {