From cdfd10c592c3e941baab61e6c373fef1b7fa3ed2 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 30 Aug 2023 09:33:23 -0400 Subject: [PATCH] fix(ChatLayout): fix isPrivileged user by using sectionItemModel --- ui/app/AppLayouts/Chat/ChatLayout.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ChatLayout.qml b/ui/app/AppLayouts/Chat/ChatLayout.qml index 688a036e16..f20d679608 100644 --- a/ui/app/AppLayouts/Chat/ChatLayout.qml +++ b/ui/app/AppLayouts/Chat/ChatLayout.qml @@ -23,10 +23,10 @@ StackLayout { property var sectionItemModel - readonly property bool isOwner: community.memberRole === Constants.memberRole.owner - readonly property bool isAdmin: community.memberRole === Constants.memberRole.admin - readonly property bool isTokenMasterOwner: community.memberRole === Constants.memberRole.tokenMaster - readonly property bool isControlNode: community.isControlNode + readonly property bool isOwner: sectionItemModel.memberRole === Constants.memberRole.owner + readonly property bool isAdmin: sectionItemModel.memberRole === Constants.memberRole.admin + readonly property bool isTokenMasterOwner: sectionItemModel.memberRole === Constants.memberRole.tokenMaster + readonly property bool isControlNode: sectionItemModel.isControlNode readonly property bool isPrivilegedUser: isControlNode || isOwner || isAdmin || isTokenMasterOwner property bool communitySettingsDisabled