From df127b88e6f3bd68906ab4d94f07d52f11aff822 Mon Sep 17 00:00:00 2001 From: James Graham Date: Sun, 20 Aug 2023 18:16:51 +0000 Subject: [PATCH] Fix Image Replies Make sure that the image container has it's implicit width/height set so that the correct size can always be calculated. This was breaking images that were a reply to another message (not sure if that's legal because we don't allow but other clients do because I found one). --- src/qml/Component/Timeline/ImageDelegate.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qml/Component/Timeline/ImageDelegate.qml b/src/qml/Component/Timeline/ImageDelegate.qml index 5db517166..5e7229e66 100644 --- a/src/qml/Component/Timeline/ImageDelegate.qml +++ b/src/qml/Component/Timeline/ImageDelegate.qml @@ -103,6 +103,9 @@ TimelineContainer { property var imageItem: root.mediaInfo.animated ? animatedImageLoader.item : imageLoader.item + implicitWidth: root.mediaInfo.animated ? animatedImageLoader.width : imageLoader.width + implicitHeight: root.mediaInfo.animated ? animatedImageLoader.height : imageLoader.height + Loader { id: imageLoader