From bcf93a6f36496c6207df1dd500528f02512d8e11 Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 16 Jul 2020 18:11:37 -0400 Subject: [PATCH] Disable member power level control when offline --- TODO.md | 1 - src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 4d4f97fd..a7bf81e2 100644 --- a/TODO.md +++ b/TODO.md @@ -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? diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml index d89dc046..cdb397ea 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml @@ -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,