From dd59e635744f085e33002d18917940c184b86a00 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 9 Jan 2026 17:15:52 -0500 Subject: [PATCH] Refer to user's power level as "Power Level", not "Role" This is a more accurate name for this. --- src/app/qml/UserDetailDialog.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/qml/UserDetailDialog.qml b/src/app/qml/UserDetailDialog.qml index f0be3e764..49b60569c 100644 --- a/src/app/qml/UserDetailDialog.qml +++ b/src/app/qml/UserDetailDialog.qml @@ -236,7 +236,7 @@ Kirigami.Dialog { if (root.room) { return !root.isSelf && root.room.canSendState("kick") && root.room.containsUser(root.user.id) && root.room.memberEffectivePowerLevel(root.user.id) < root.room.memberEffectivePowerLevel(root.connection.localUserId); } - return !root.isSelf; + return false; } text: i18nc("@action:button Kick the user from the room", "Kick…") @@ -262,7 +262,7 @@ Kirigami.Dialog { if (root.room) { return !root.isSelf && root.room.canSendState("ban") && !root.room.isUserBanned(root.user.id) && root.room.memberEffectivePowerLevel(root.user.id) < root.room.memberEffectivePowerLevel(root.connection.localUserId); } - return !root.isSelf; + return false; } text: i18nc("@action:button Ban this user from the room", "Ban…") @@ -289,7 +289,7 @@ Kirigami.Dialog { if (root.room) { return !root.isSelf && root.room.canSendState("ban") && root.room.isUserBanned(root.user.id); } - return !root.isSelf; + return false; } text: i18nc("@action:button Unban the user from this room", "Unban") @@ -326,7 +326,7 @@ Kirigami.Dialog { } Kirigami.Heading { - text: i18nc("@title Role such as 'Admin' or 'Moderator' for this user", "Role") + text: i18nc("@title Role such as 'Admin' or 'Moderator' for this user", "Power Level") level: 2 visible: root.isRoomProfile