Move the "Show User" action to DelegateContextMenu, add it for media

This was missing from the media context menu, and should be added. Since
it's shared between messages and files, it's now a common action.
This commit is contained in:
Joshua Goins
2024-09-02 12:58:49 -04:00
parent 3af1a88e05
commit e117cc0cfb
3 changed files with 10 additions and 7 deletions

View File

@@ -136,6 +136,14 @@ Loader {
}
}
component ShowUserAction: Kirigami.Action {
text: i18nc("@action:inmenu", "Show User")
icon.name: "username-copy"
onTriggered: {
RoomManager.resolveResource(author.id)
}
}
Component {
id: regularMenu

View File

@@ -86,6 +86,7 @@ DelegateContextMenu {
}
},
DelegateContextMenu.ReportMessageAction {},
DelegateContextMenu.ShowUserAction {},
DelegateContextMenu.ViewSourceAction {}
]

View File

@@ -66,13 +66,7 @@ DelegateContextMenu {
onTriggered: Clipboard.saveText(root.selectedText.length > 0 ? root.selectedText : root.plainText)
},
DelegateContextMenu.ReportMessageAction {},
Kirigami.Action {
text: i18nc("@action:inmenu", "Show User")
icon.name: "username-copy"
onTriggered: {
RoomManager.resolveResource(author.id)
}
},
DelegateContextMenu.ShowUserAction {},
DelegateContextMenu.ViewSourceAction {},
Kirigami.Action {
text: i18n("Copy Link")