From 905b127a739a7c8facf6cfa8883f58492a53f341 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Mon, 13 Feb 2023 23:52:40 -0500 Subject: [PATCH] Add a generic video icon when there is no thumbnail --- resources/qml/delegates/PlayableMediaMessage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/qml/delegates/PlayableMediaMessage.qml b/resources/qml/delegates/PlayableMediaMessage.qml index c4c143cc..8b347b58 100644 --- a/resources/qml/delegates/PlayableMediaMessage.qml +++ b/resources/qml/delegates/PlayableMediaMessage.qml @@ -59,7 +59,7 @@ Item { Image { anchors.fill: parent - source: thumbnailUrl ? thumbnailUrl.replace("mxc://", "image://MxcImage/") + "?scale" : "" + source: thumbnailUrl ? thumbnailUrl.replace("mxc://", "image://MxcImage/") + "?scale" : "image://colorimage/:/icons/icons/ui/video-file.svg?" + Nheko.colors.windowText asynchronous: true fillMode: Image.PreserveAspectFit