fix(community): join community when request is accepted

Fixes #4991
This commit is contained in:
Jonathan Rainville 2022-03-10 11:48:18 -05:00
parent 6a023443ac
commit 13b81134de
1 changed files with 3 additions and 0 deletions

View File

@ -211,6 +211,9 @@ QtObject:
self.allCommunities[community.id] = community
if(not self.joinedCommunities.hasKey(community.id)):
if (community.joined and community.isMember):
self.joinedCommunities[community.id] = community
self.events.emit(SIGNAL_COMMUNITY_JOINED, CommunityArgs(community: community))
return
let prev_community = self.joinedCommunities[community.id]