Fixes for v12 power levels

This commit is contained in:
Tobias Fella
2025-12-25 22:29:07 +01:00
committed by Tobias Fella
parent 82f54b4f2c
commit 657c8a0dcd
4 changed files with 15 additions and 3 deletions

View File

@@ -300,7 +300,7 @@ Kirigami.Dialog {
}
QQC2.Button {
visible: root.room.canSendState("m.room.power_levels")
visible: root.room.canSendState("m.room.power_levels") && !(root.room.roomCreatorHasUltimatePowerLevel() && root.room.isCreator(root.user.id))
text: i18nc("@action:button Set the power level (such as 'Admin') for this user", "Set Power Level")
icon.name: "document-edit-symbolic"
display: QQC2.AbstractButton.IconOnly