fix(main/module): make sure to add community only when it is not there
Fixes #12234
This commit is contained in:
parent
4767c705df
commit
c05fb6cb83
|
@ -910,6 +910,9 @@ method communityJoined*[T](
|
|||
communityTokensService: community_tokens_service.Service,
|
||||
setActive: bool = false,
|
||||
) =
|
||||
if self.channelGroupModules.contains(community.id):
|
||||
# The community is already spectated
|
||||
return
|
||||
var firstCommunityJoined = false
|
||||
if (self.channelGroupModules.len == 1): # First one is personal chat section
|
||||
firstCommunityJoined = true
|
||||
|
|
Loading…
Reference in New Issue