Make power level control permission-aware

This commit is contained in:
miruka
2020-07-13 18:44:20 -04:00
parent f408d511a6
commit 757679a6e0
6 changed files with 43 additions and 12 deletions

View File

@@ -33,6 +33,11 @@ HColumnLayout {
{
userId: chat.userId,
roomId: chat.roomId,
ownPowerLevel:
Qt.binding(() => chat.roomInfo.own_power_level),
canSetPowerLevels: Qt.binding(() =>
chat.roomInfo.can_set_power_levels
),
member: model,
stackView: stackView,
},