diff --git a/src/app_service/service/community/service.nim b/src/app_service/service/community/service.nim index e907af2c7cf..1e7ace20a0b 100644 --- a/src/app_service/service/community/service.nim +++ b/src/app_service/service/community/service.nim @@ -528,8 +528,10 @@ QtObject: self.communities[community.id] = community self.events.emit(SIGNAL_COMMUNITY_ADDED, CommunityArgs(community: community)) - if (community.joined and community.isMember): + if community.joined and community.isMember: self.events.emit(SIGNAL_COMMUNITY_JOINED, CommunityArgs(community: community, fromUserAction: false)) + elif community.spectated: + self.events.emit(SIGNAL_COMMUNITY_SPECTATED, CommunityArgs(community: community, fromUserAction: false, isPendingOwnershipRequest: false)) return let prevCommunity = self.communities[community.id] @@ -554,6 +556,12 @@ QtObject: except Exception: discard + # community was joined + if not prevCommunity.joined and community.joined: + self.events.emit(SIGNAL_COMMUNITY_JOINED, CommunityArgs(community: community, fromUserAction: false)) + elif not prevCommunity.spectated and community.spectated: + self.events.emit(SIGNAL_COMMUNITY_SPECTATED, CommunityArgs(community: community, fromUserAction: false, isPendingOwnershipRequest: false)) + # ownership lost if prevCommunity.isOwner and not community.isOwner: self.events.emit(SIGNAL_COMMUNITY_LOST_OWNERSHIP, CommunityIdArgs(communityId: community.id)) diff --git a/vendor/status-go b/vendor/status-go index 0fc843266f7..45418a8c53b 160000 --- a/vendor/status-go +++ b/vendor/status-go @@ -1 +1 @@ -Subproject commit 0fc843266f74c4ce90c7230d89bdd8ef75b0a2f1 +Subproject commit 45418a8c53bf9a4eb73a911d742fc7e6d2c76969