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

@ -252,9 +252,12 @@ proc getTransactionDetails*(self: Controller, message: MessageDto): (string,stri
proc getWalletAccounts*(self: Controller): seq[wallet_account_service.WalletAccountDto] =
return self.messageService.getWalletAccounts()
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) =
self.chatService.leaveChat(self.chatId)