fix(group-chat): fix function call to join public chat

Fixes #5041
This commit is contained in:
Jonathan Rainville 2022-03-21 10:57:15 -04:00 committed by Iuri Matias
parent d7fb0af91d
commit 16f61db2f7
1 changed files with 5 additions and 2 deletions

View File

@ -254,7 +254,10 @@ proc getWalletAccounts*(self: Controller): seq[wallet_account_service.WalletAcco
return self.messageService.getWalletAccounts() return self.messageService.getWalletAccounts()
proc joinGroupChat*(self: Controller) = proc joinGroupChat*(self: Controller) =
self.chatService.confirmJoiningGroup("", self.chatId) var communityId = ""
if (self.belongsToCommunity):
communityId = self.sectionId
self.chatService.confirmJoiningGroup(communityId, self.chatId)
proc leaveChat*(self: Controller) = proc leaveChat*(self: Controller) =
self.chatService.leaveChat(self.chatId) self.chatService.leaveChat(self.chatId)