diff --git a/src/app/modules/main/chat_section/controller.nim b/src/app/modules/main/chat_section/controller.nim index faee2bbb9b..77f37d2925 100644 --- a/src/app/modules/main/chat_section/controller.nim +++ b/src/app/modules/main/chat_section/controller.nim @@ -374,12 +374,6 @@ proc init*(self: Controller) = var args = ChatUpdateDetailsArgs(e) self.delegate.onGroupChatDetailsUpdated(args.id, args.newName, args.newColor, args.newImage) - self.events.on(SIGNAL_MAKE_SECTION_CHAT_ACTIVE) do(e: Args): - var args = ActiveSectionChatArgs(e) - if (self.sectionId != args.sectionId): - return - self.delegate.makeChatWithIdActive(args.chatId) - if (not self.isCommunitySection): self.events.on(SIGNAL_CHAT_SWITCH_TO_OR_CREATE_1_1_CHAT) do(e:Args): let args = ChatExtArgs(e) diff --git a/src/app/modules/main/chat_section/io_interface.nim b/src/app/modules/main/chat_section/io_interface.nim index b2d97ea617..ecae2e4cd0 100644 --- a/src/app/modules/main/chat_section/io_interface.nim +++ b/src/app/modules/main/chat_section/io_interface.nim @@ -60,9 +60,6 @@ method chatContentDidLoad*(self: AccessInterface) {.base.} = method activeItemSet*(self: AccessInterface, itemId: string) {.base.} = raise newException(ValueError, "No implementation available") -method makeChatWithIdActive*(self: AccessInterface, chatId: string) {.base.} = - raise newException(ValueError, "No implementation available") - method doesCatOrChatExist*(self: AccessInterface, chatId: string): bool {.base.} = raise newException(ValueError, "No implementation available") diff --git a/src/app/modules/main/chat_section/module.nim b/src/app/modules/main/chat_section/module.nim index f050c25689..8f6caa88a3 100644 --- a/src/app/modules/main/chat_section/module.nim +++ b/src/app/modules/main/chat_section/module.nim @@ -382,10 +382,6 @@ method chatContentDidLoad*(self: Module) = method setActiveItem*(self: Module, itemId: string) = self.controller.setActiveItem(itemId) -method makeChatWithIdActive*(self: Module, chatId: string) = - self.setActiveItem(chatId) - singletonInstance.localAccountSensitiveSettings.setSectionLastOpenChat(self.controller.getMySectionId(), chatId) - proc updateActiveChatMembership*(self: Module) = let activeChatId = self.controller.getActiveChatId() let chat = self.controller.getChatDetails(activeChatId)