Fix clicking on images in replies

fixes #881
This commit is contained in:
Nicolas Werner 2022-03-05 03:45:45 +01:00
parent c76cda0cbe
commit df6a5aabb6
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -65,7 +65,7 @@ Item {
TapHandler {
acceptedButtons: Qt.LeftButton
onSingleTapped: {
let link = reply.child.linkAt(eventPoint.position.x, eventPoint.position.y - userName_.implicitHeight);
let link = reply.child.linkAt != undefined && reply.child.linkAt(eventPoint.position.x, eventPoint.position.y - userName_.implicitHeight);
if (link) {
Nheko.openLink(link)
} else {