From edcf81f0da6db7d52eccb6a850605113119eb6e1 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 24 Dec 2025 18:42:26 -0500 Subject: [PATCH] Add a few ways to open profile for inviting users I recieved a few invites from unknown users, and I had no idea who they were/came from. I could check their profile to see if we had any rooms in common, but there was no way to actually check their profile! This makes it possible to open their profile by clicking their avatar (like elsewhere) but also adds a button to make it even more obvious. --- src/app/qml/InvitationView.qml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/app/qml/InvitationView.qml b/src/app/qml/InvitationView.qml index 67cd26e20..00cacb503 100644 --- a/src/app/qml/InvitationView.qml +++ b/src/app/qml/InvitationView.qml @@ -27,16 +27,17 @@ ColumnLayout { Layout.fillHeight: true } - KirigamiComponents.Avatar { + KirigamiComponents.AvatarButton { id: avatar Layout.preferredWidth: Kirigami.Units.iconSizes.huge Layout.preferredHeight: Kirigami.Units.iconSizes.huge Layout.alignment: Qt.AlignHCenter - Layout.fillWidth: true name: root.invitingMember.displayName source: NeoChatConfig.hideImages ? undefined : root.invitingMember.avatarUrl color: root.invitingMember.color + + onClicked: RoomManager.resolveResource(root.currentRoom.invitingUserId) } Loader { @@ -138,6 +139,22 @@ ColumnLayout { Layout.fillWidth: true FormCard.FormButtonDelegate { + id: viewProfileDelegate + + icon.name: "user-properties-symbolic" + text: i18nc("@action:button View this user's profile", "View %1's Profile", root.invitingMember.displayName) + + onClicked: RoomManager.resolveResource(root.currentRoom.invitingUserId) + } + + FormCard.FormDelegateSeparator { + above: viewProfileDelegate + below: ignoreUserDelegate + } + + FormCard.FormButtonDelegate { + id: ignoreUserDelegate + icon.name: "list-remove-symbolic" text: i18nc("@action:button Block the user", "Block %1", root.invitingMember.displayName)