Fix clicking on images in replies

fixes #881
pull/976/head
Nicolas Werner 3 years ago
parent c76cda0cbe
commit df6a5aabb6
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      resources/qml/delegates/Reply.qml

@ -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 {

Loading…
Cancel
Save