fix re-join on request community
This commit is contained in:
parent
f7694e2915
commit
5ec9fe4ebd
|
@ -158,6 +158,7 @@ StatusModal {
|
||||||
if (access !== Constants.communityChatOnRequestAccess) {
|
if (access !== Constants.communityChatOnRequestAccess) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
return false
|
||||||
// Not Refactored Yet
|
// Not Refactored Yet
|
||||||
// return root.store.chatsModelInst.communities.isCommunityRequestPending(root.communityId)
|
// return root.store.chatsModelInst.communities.isCommunityRequestPending(root.communityId)
|
||||||
}
|
}
|
||||||
|
@ -202,7 +203,9 @@ StatusModal {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
// Not Refactored Yet
|
// Not Refactored Yet
|
||||||
let error
|
let error
|
||||||
if (access === Constants.communityChatOnRequestAccess && !root.isMember) {
|
if (access === Constants.communityChatOnRequestAccess &&
|
||||||
|
!root.community.amISectionAdmin
|
||||||
|
&& !root.isMember) {
|
||||||
// TODO refactor
|
// TODO refactor
|
||||||
return
|
return
|
||||||
// error = root.store.chatsModelInst.communities.requestToJoinCommunity(root.communityId, userProfile.name)
|
// error = root.store.chatsModelInst.communities.requestToJoinCommunity(root.communityId, userProfile.name)
|
||||||
|
|
Loading…
Reference in New Issue