From 5ec9fe4ebd9dbf714af8dc84fd5ede463cfdecef Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 28 Jan 2022 15:44:52 -0500 Subject: [PATCH] fix re-join on request community --- .../Chat/popups/community/CommunityDetailPopup.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Chat/popups/community/CommunityDetailPopup.qml b/ui/app/AppLayouts/Chat/popups/community/CommunityDetailPopup.qml index 49e26da08d..56dfd37108 100644 --- a/ui/app/AppLayouts/Chat/popups/community/CommunityDetailPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/community/CommunityDetailPopup.qml @@ -158,6 +158,7 @@ StatusModal { if (access !== Constants.communityChatOnRequestAccess) { return false } + return false // Not Refactored Yet // return root.store.chatsModelInst.communities.isCommunityRequestPending(root.communityId) } @@ -202,7 +203,9 @@ StatusModal { onClicked: { // Not Refactored Yet let error - if (access === Constants.communityChatOnRequestAccess && !root.isMember) { + if (access === Constants.communityChatOnRequestAccess && + !root.community.amISectionAdmin + && !root.isMember) { // TODO refactor return // error = root.store.chatsModelInst.communities.requestToJoinCommunity(root.communityId, userProfile.name)