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

@ -3,7 +3,6 @@
- global presence control
- power level control keyboard focus
- idlemanager: what if setPresence call fails due to network?
- disable member power level change control when offline
- fix power level control button layout when apply button is loading
- joining new DM → not loading past events the first time?

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,