summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorSateallia <mail@satealliasdomain.net>2023-05-29 15:10:00 +0000
committerNicolas Werner <nicolas.werner@hotmail.de>2023-05-30 13:57:34 +0200
commit198e1fc6b90357a86844024b78ecf86aac3e7a94 (patch)
tree785d0cde9973c505443379e116b3db9022f25497 /resources
parentFix linting (diff)
downloadnheko-198e1fc6b90357a86844024b78ecf86aac3e7a94.tar.xz
Right click option to go to event while searching
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/MessageView.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml
index cc80cbbf..733621df 100644
--- a/resources/qml/MessageView.qml
+++ b/resources/qml/MessageView.qml
@@ -648,6 +648,16 @@ Item {
         }
 
         Platform.MenuItem {
+             visible: topBar.searchString !== ""
+             enabled: visible
+             text: qsTr("Go to eve&nt")
+             onTriggered: function() {
+                room.showEvent(messageContextMenu.eventId);
+                topBar.searchString = "";
+            }
+         }
+
+        Platform.MenuItem {
             visible: messageContextMenu.text
             enabled: visible
             text: qsTr("&Copy")