Room admins can always demote themselves

This commit is contained in:
miruka 2020-07-13 19:22:06 -04:00
parent 7277b5d198
commit 0a277f23b1

View File

@ -164,7 +164,10 @@ HListView {
id: powerLevel id: powerLevel
enabled: enabled:
root.canSetPowerLevels && root.canSetPowerLevels &&
root.ownPowerLevel > member.power_level (
root.ownPowerLevel > member.power_level ||
root.ownPowerLevel === 100
)
label.text: qsTr("Power level:") label.text: qsTr("Power level:")
label.horizontalAlignment: Qt.AlignHCenter label.horizontalAlignment: Qt.AlignHCenter