1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-08 11:03:30 +02:00

FilesToSendDelegate: fix document preview

GitLab: #1089

Change-Id: Ia17f68998fb1b71f2cfbe0406a1dfffc283af0c2
This commit is contained in:
Franck LAURENT 2023-04-25 14:28:00 -04:00 committed by Sébastien Blin
parent 836b64a180
commit a7e9ea8e22

View file

@ -74,15 +74,7 @@ Item {
visible: !IsImage visible: !IsImage
anchors.fill: parent anchors.fill: parent
anchors.margins: 14 anchors.margins: 14
source: { source: JamiResources.attached_file_svg
if(mediaInfo.isVideo)
return JamiResources.video_file_svg
if(mediaInfo.isAudio)
return JamiResources.audio_file_svg
return JamiResources.attached_file_svg
}
cache: false cache: false
color: JamiTheme.textColor color: JamiTheme.textColor
} }