fix(chat): set 1-1 chat as active when already created

Fixes #4493
This commit is contained in:
Jonathan Rainville 2022-01-19 12:17:00 -05:00 committed by Sale Djenic
parent a0b40590ab
commit c332fcaad8
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ method createOneToOneChat*(self: Module, chatId: string, ensName: string) =
return
if(self.chatContentModules.hasKey(chatId)):
error "error: one to one chat is already added", chatId
self.setActiveItemSubItem(chatId, "")
return
self.controller.createOneToOneChat(chatId, ensName)