Room admins can always demote themselves
This commit is contained in:
parent
7277b5d198
commit
0a277f23b1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user