From c332fcaad89d67c6246b44c67546947f7d90b0c7 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 19 Jan 2022 12:17:00 -0500 Subject: [PATCH] fix(chat): set 1-1 chat as active when already created Fixes #4493 --- src/app/modules/main/chat_section/module.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/main/chat_section/module.nim b/src/app/modules/main/chat_section/module.nim index 6d7a942134..9a08bbbb97 100644 --- a/src/app/modules/main/chat_section/module.nim +++ b/src/app/modules/main/chat_section/module.nim @@ -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)