From a7e9ea8e22ddbb44e33cfeabb275d00c51e049fa Mon Sep 17 00:00:00 2001 From: Franck LAURENT <franck.laurent@savoirfairelinux.com> Date: Tue, 25 Apr 2023 14:28:00 -0400 Subject: [PATCH] FilesToSendDelegate: fix document preview GitLab: #1089 Change-Id: Ia17f68998fb1b71f2cfbe0406a1dfffc283af0c2 --- src/app/mainview/components/FilesToSendDelegate.qml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/app/mainview/components/FilesToSendDelegate.qml b/src/app/mainview/components/FilesToSendDelegate.qml index e0b7df218..6506d12f8 100644 --- a/src/app/mainview/components/FilesToSendDelegate.qml +++ b/src/app/mainview/components/FilesToSendDelegate.qml @@ -74,15 +74,7 @@ Item { visible: !IsImage anchors.fill: parent anchors.margins: 14 - source: { - if(mediaInfo.isVideo) - return JamiResources.video_file_svg - - if(mediaInfo.isAudio) - return JamiResources.audio_file_svg - - return JamiResources.attached_file_svg - } + source: JamiResources.attached_file_svg cache: false color: JamiTheme.textColor } -- GitLab