branch: externals/ement commit b67a75c8338a89144d3ff67e160c8cbe578aa0a4 Author: Arto Jantunen <vi...@iki.fi> Commit: Adam Porter <a...@alphapapa.net>
Set download as the action for m.audio, m.file and m.video --- ement-room.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ement-room.el b/ement-room.el index f4fe181495..941f9aa766 100644 --- a/ement-room.el +++ b/ement-room.el @@ -5546,9 +5546,9 @@ Then invalidate EVENT's node to show the image." (file-size-human-readable size))) (string (format "[file: %s (%s) (%s)]" filename mimetype human-size))) (concat (propertize string - 'action #'ement-room-browse-mxc + 'action #'ement-room-download-event-file 'button t - 'button-data mxc-url + 'button-data event 'category t 'face 'button 'follow-link t @@ -5569,9 +5569,9 @@ Then invalidate EVENT's node to show the image." (human-size (file-size-human-readable size)) (string (format "[video: %s (%s) (%sx%s) (%s)]" body mimetype w h human-size))) (concat (propertize string - 'action #'ement-room-browse-mxc + 'action #'ement-room-download-event-file 'button t - 'button-data mxc-url + 'button-data event 'category t 'face 'button 'follow-link t @@ -5592,9 +5592,9 @@ Then invalidate EVENT's node to show the image." (human-duration (format-seconds "%m:%s" (/ duration 1000))) (string (format "[audio: %s (%s) (%s) (%s)]" body mimetype human-duration human-size))) (concat (propertize string - 'action #'ement-room-browse-mxc + 'action #'ement-room-download-event-file 'button t - 'button-data mxc-url + 'button-data event 'category t 'face 'button 'follow-link t