From 198e1fc6b90357a86844024b78ecf86aac3e7a94 Mon Sep 17 00:00:00 2001 From: Sateallia Date: Mon, 29 May 2023 15:10:00 +0000 Subject: [PATCH] Right click option to go to event while searching --- resources/qml/MessageView.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 @@ -647,6 +647,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