From c7c892c51cfaa8d09f2ce5b0ede6be1a09813c06 Mon Sep 17 00:00:00 2001 From: James Graham Date: Sun, 6 Aug 2023 17:08:46 +0000 Subject: [PATCH] Fix message long press Add a tap handler so that long press events in the text of a message can be captured. This should make mobile menus work on text messages again. --- src/qml/Component/Timeline/MessageDelegate.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qml/Component/Timeline/MessageDelegate.qml b/src/qml/Component/Timeline/MessageDelegate.qml index 4c69f6c4f..b32db6039 100644 --- a/src/qml/Component/Timeline/MessageDelegate.qml +++ b/src/qml/Component/Timeline/MessageDelegate.qml @@ -50,6 +50,12 @@ TimelineContainer { isReply: root.isReply textMessage: root.display + + TapHandler { + enabled: !label.hoveredLink + acceptedButtons: Qt.LeftButton + onLongPressed: root.openContextMenu() + } } Loader { Layout.fillWidth: true