diff --git a/src/app/modules/main/app_search/controller.nim b/src/app/modules/main/app_search/controller.nim index 6daad809ef6..5d4a64ec8b1 100644 --- a/src/app/modules/main/app_search/controller.nim +++ b/src/app/modules/main/app_search/controller.nim @@ -64,6 +64,10 @@ proc init*(self: Controller) = var args = ChatUpdateArgs(e) self.delegate.updateChatItems(args.chats) + self.events.on(SIGNAL_COMMUNITY_CHANNEL_EDITED) do(e: Args): + let args = CommunityChatArgs(e) + self.delegate.updateChatItems(@[args.chat]) + self.events.on(SIGNAL_CONTACT_UPDATED) do(e: Args): let args = ContactArgs(e) self.delegate.contactUpdated(args.contactId) @@ -85,6 +89,10 @@ proc init*(self: Controller) = let args = CommunityChatIdArgs(e) self.delegate.chatRemoved(args.chatId) + self.events.on(SIGNAL_CHAT_LEFT) do(e:Args): + let args = ChatArgs(e) + self.delegate.chatRemoved(args.chatId) + self.events.on(SIGNAL_SENDING_SUCCESS) do(e:Args): let args = MessageSendingSuccess(e) self.delegate.updateLastMessage(args.chat.id, args.chat.communityId, args.chat.chatType, args.chat.lastMessage)