fix(main/module): make sure to add community only when it is not there

Fixes #12234
This commit is contained in:
Jonathan Rainville 2023-09-22 12:39:38 -04:00
parent 4767c705df
commit c05fb6cb83
1 changed files with 3 additions and 0 deletions

View File

@ -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