From 040b24e0d26dbcdb489f95f6ef755b6d401bd658 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Sat, 3 Nov 2018 22:40:30 +0800 Subject: [PATCH] Form download cache file name from event body. --- imports/Spectral/Component/Timeline/DownloadableContent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imports/Spectral/Component/Timeline/DownloadableContent.qml b/imports/Spectral/Component/Timeline/DownloadableContent.qml index e2bbaea..ba586d4 100644 --- a/imports/Spectral/Component/Timeline/DownloadableContent.qml +++ b/imports/Spectral/Component/Timeline/DownloadableContent.qml @@ -26,7 +26,7 @@ Item { else { openOnFinished = true - currentRoom.downloadFile(eventId, StandardPaths.writableLocation(StandardPaths.CacheLocation) + "/" + eventId.replace(":", "_") + ".tmp") + currentRoom.downloadFile(eventId, StandardPaths.writableLocation(StandardPaths.CacheLocation) + "/" + eventId.replace(":", "_") + (message || ".tmp")) } }