fix re-join on request community

This commit is contained in:
Jonathan Rainville 2022-01-28 15:44:52 -05:00 committed by Sale Djenic
parent f7694e2915
commit 5ec9fe4ebd
1 changed files with 4 additions and 1 deletions

View File

@ -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)