diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2023-07-24 19:07:45 -0400 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2023-10-25 22:24:40 -0400 |
commit | bb971b057526c77af47181e2c956cb415c4e4bbc (patch) | |
tree | 7e282f765bc00df27a397c1404f7b67d397e8b00 /resources/qml/MessageView.qml | |
parent | Allow setting presence state again (diff) | |
download | nheko-bb971b057526c77af47181e2c956cb415c4e4bbc.tar.xz |
Add report message functionality
Diffstat (limited to 'resources/qml/MessageView.qml')
-rw-r--r-- | resources/qml/MessageView.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index df39f3d1..80ec87c2 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -415,6 +415,12 @@ Item { } } } + Component { + id: reportDialog + + ReportMessage {} + } + Platform.MenuItem { enabled: visible text: qsTr("Go to &message") @@ -522,6 +528,16 @@ Item { } } Platform.MenuItem { + text: qsTr("Report message") + enabled: visible + onTriggered: function () { + var dialog = reportDialog.createObject(timelineRoot, {"eventId": messageContextMenu.eventId}); + dialog.show(); + dialog.forceActiveFocus(); + timelineRoot.destroyOnClose(dialog); + } + } + Platform.MenuItem { enabled: visible text: qsTr("&Save as") visible: messageContextMenuC.eventType == MtxEvent.ImageMessage || messageContextMenuC.eventType == MtxEvent.VideoMessage || messageContextMenuC.eventType == MtxEvent.AudioMessage || messageContextMenuC.eventType == MtxEvent.FileMessage || messageContextMenuC.eventType == MtxEvent.Sticker |