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 { TapHandler {
acceptedButtons: Qt.LeftButton acceptedButtons: Qt.LeftButton
onSingleTapped: { 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) { if (link) {
Nheko.openLink(link) Nheko.openLink(link)
} else { } else {