From 13b81134de7d12ad53b1e4b9f07de66abbeb9a43 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 10 Mar 2022 11:48:18 -0500 Subject: [PATCH] fix(community): join community when request is accepted Fixes #4991 --- src/app_service/service/community/service.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app_service/service/community/service.nim b/src/app_service/service/community/service.nim index 8cb43d9829..514cf3b8fc 100644 --- a/src/app_service/service/community/service.nim +++ b/src/app_service/service/community/service.nim @@ -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]