From 0a277f23b1ce2a18a1567d1847a937c4bfaf40c7 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 13 Jul 2020 19:22:06 -0400 Subject: [PATCH] Room admins can always demote themselves --- src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml index bca71389..66a31c4c 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml @@ -164,7 +164,10 @@ HListView { id: powerLevel enabled: root.canSetPowerLevels && - root.ownPowerLevel > member.power_level + ( + root.ownPowerLevel > member.power_level || + root.ownPowerLevel === 100 + ) label.text: qsTr("Power level:") label.horizontalAlignment: Qt.AlignHCenter