1 files changed, 8 insertions, 0 deletions
diff --git a/resources/qml/TimelineRow.qml b/resources/qml/TimelineRow.qml
index 43de679c..3a7bf561 100644
--- a/resources/qml/TimelineRow.qml
+++ b/resources/qml/TimelineRow.qml
@@ -59,6 +59,7 @@ AbstractButton {
acceptedButtons: Qt.RightButton
onSingleTapped: messageContextMenu.show(eventId, type, isSender, isEncrypted, isEditable, contentItem.child.hoveredLink, contentItem.child.copyText)
gesturePolicy: TapHandler.ReleaseWithinBounds
+ acceptedDevices: PointerDevice.Mouse | PointerDevice.Stylus | PointerDevice.TouchPad
}
}
@@ -92,6 +93,13 @@ AbstractButton {
}
}
+ onClicked: {
+ let link = contentItem.child.linkAt != undefined && contentItem.child.linkAt(pressX-row.x-msg.x, pressY-row.y-msg.y-contentItem.y);
+ if (link) {
+ Nheko.openLink(link)
+ }
+ }
+
Rectangle {
id: row
property bool bubbleOnRight : isSender && Settings.bubbles
|