Add user menu that is opened via right-clicking/long-tapped on avatar

We can un-clutter our message context menu, which we had to share
with user actions. (Even though we only had one so far.) I added one new
user-specific action which allows you to quickly mention the user in
chat. Otherwise you would've had to copy their username or use the
completion menu.

It's convergent on mobile, it still has the hover indicator and it also
is available through the AuthorComponent.

BUG: 486252
This commit is contained in:
Joshua Goins
2025-05-15 15:01:52 -04:00
parent 6ef7acc8e5
commit d059195e92
9 changed files with 111 additions and 34 deletions

View File

@@ -142,14 +142,6 @@ KirigamiComponents.ConvergentContextMenu {
}
}
component ShowUserAction: Kirigami.Action {
text: i18nc("@action:inmenu", "Show User")
icon.name: "username-copy"
onTriggered: {
RoomManager.resolveResource(author.id)
}
}
component PinMessageAction: Kirigami.Action {
readonly property bool pinned: currentRoom.isEventPinned(root.eventId)