Disable member power level control when offline

This commit is contained in:
miruka
2020-07-16 18:11:37 -04:00
parent 23a0504937
commit bcf93a6f36
2 changed files with 1 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ HColumnLayout {
ownPowerLevel:
Qt.binding(() => chat.roomInfo.own_power_level),
canSetPowerLevels: Qt.binding(() =>
chat.userInfo.presence !== "offline" &&
chat.roomInfo.can_set_power_levels
),
member: model,