From 93a401536912d26cb3409877e65960ce149057e7 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 6 Nov 2019 06:34:52 -0400 Subject: [PATCH] EventImage: set prop correctly if no thumbnail Fix cases where a m.image event doesn't have a thumbnail but we tried to download one anyway, resulting in a DownloadFailed exception. --- src/qml/Chat/Timeline/EventImage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/Chat/Timeline/EventImage.qml b/src/qml/Chat/Timeline/EventImage.qml index cafdbf97..5a336cad 100644 --- a/src/qml/Chat/Timeline/EventImage.qml +++ b/src/qml/Chat/Timeline/EventImage.qml @@ -10,7 +10,7 @@ HMxcImage { animated: loader.singleMediaInfo.media_mime === "image/gif" || Utils.urlExtension(loader.mediaUrl) === "gif" clientUserId: chatPage.userId - thumbnail: ! animated + thumbnail: ! animated && loader.thumbnailMxc mxc: thumbnail ? (loader.thumbnailMxc || loader.mediaUrl) : (loader.mediaUrl || loader.thumbnailMxc)