fix: fix image click not opening on click

Fixes #1607
This commit is contained in:
Jonathan Rainville 2021-01-13 15:27:56 -05:00 committed by Iuri Matias
parent 7c8aca0fbc
commit be8e2c82f0
2 changed files with 5 additions and 1 deletions

View File

@ -9,9 +9,10 @@ Item {
property bool isCurrentUser: false
property url source
property bool playing: true
property bool isAnimated: true
property bool isAnimated: !!source && source.toString().endsWith('.gif')
signal clicked(var image)
property var container
property alias imageAlias: imageMessage
id: imageContainer
width: loadingImage.visible ? loadingImage.width : imageMessage.width

View File

@ -117,6 +117,9 @@ Column {
source: linkData.thumbnailUrl
imageWidth: 300
isCurrentUser: root.isCurrentUser
onClicked: {
clickMessage(false, false, true, linkImage.imageAlias)
}
}
}
}