diff --git a/src/app/core/eventemitter.nim b/src/app/core/eventemitter.nim index ee94164fd3..bd85638bd2 100644 --- a/src/app/core/eventemitter.nim +++ b/src/app/core/eventemitter.nim @@ -46,6 +46,7 @@ proc disconnect*(this: EventEmitter, handlerId: UUID) = this.events[k].del handlerId proc emit*(this:EventEmitter, name:string, args:Args): void = + echo "Emitting ", name if this.events.hasKey(name): # collect the handlers before executing them # because of 'once' proc, we also mutate diff --git a/src/app/core/signals/signals_manager.nim b/src/app/core/signals/signals_manager.nim index 739d186853..59f6131a87 100644 --- a/src/app/core/signals/signals_manager.nim +++ b/src/app/core/signals/signals_manager.nim @@ -56,6 +56,7 @@ QtObject: self.processSignal(signal) proc decode(self: SignalsManager, jsonSignal: JsonNode): Signal = + echo jsonSignal let signalString = jsonSignal{"type"}.getStr var signalType: SignalType try: diff --git a/src/app/modules/main/chat_section/chat_content/controller.nim b/src/app/modules/main/chat_section/chat_content/controller.nim index 3391ef3034..e6fb5be3b9 100644 --- a/src/app/modules/main/chat_section/chat_content/controller.nim +++ b/src/app/modules/main/chat_section/chat_content/controller.nim @@ -179,7 +179,9 @@ proc init*(self: Controller) = var args = ChatUpdateArgs(e) for chat in args.chats: if self.chatId == chat.id: + echo "Chat content" self.delegate.onChatEdited(chat) + echo "Chat done" proc getMyChatId*(self: Controller): string = return self.chatId diff --git a/src/app/modules/main/chat_section/controller.nim b/src/app/modules/main/chat_section/controller.nim index 87446be3f3..590a530c1f 100644 --- a/src/app/modules/main/chat_section/controller.nim +++ b/src/app/modules/main/chat_section/controller.nim @@ -156,9 +156,11 @@ proc init*(self: Controller) = var args = ChatUpdateArgs(e) for chat in args.chats: let belongsToCommunity = chat.communityId.len > 0 + echo "Chat section" discard self.delegate.addOrUpdateChat(chat, belongsToCommunity, self.events, self.settingsService, self.nodeConfigurationService, self.contactService, self.chatService, self.communityService, self.messageService, self.gifService, self.mailserversService, setChatAsActive = false) + echo "Chat section done" self.events.on(SIGNAL_CHAT_CREATED) do(e: Args): var args = CreatedChatArgs(e) diff --git a/src/app/modules/main/profile_section/notifications/controller.nim b/src/app/modules/main/profile_section/notifications/controller.nim index c824b40180..784e9d4508 100644 --- a/src/app/modules/main/profile_section/notifications/controller.nim +++ b/src/app/modules/main/profile_section/notifications/controller.nim @@ -80,7 +80,9 @@ proc init*(self: Controller) = self.events.on(SIGNAL_CHAT_UPDATE) do(e: Args): var args = ChatUpdateArgs(e) for chat in args.chats: + echo "notifications" self.delegate.addChat(chat) + echo "notifications done" self.events.on(SIGNAL_CHAT_RENAMED) do(e: Args): var args = ChatRenameArgs(e) diff --git a/src/app/modules/main/profile_section/notifications/module.nim b/src/app/modules/main/profile_section/notifications/module.nim index a2c57f0aba..083cbd9aba 100644 --- a/src/app/modules/main/profile_section/notifications/module.nim +++ b/src/app/modules/main/profile_section/notifications/module.nim @@ -133,8 +133,11 @@ method addChat*(self: Module, chatDto: ChatDto) = let ind = self.view.exemptionsModel().findIndexForItemId(chatDto.id) if(ind != -1): return + echo "Create item" let item = self.createChatItem(chatDto) + echo "created item" self.view.exemptionsModel().addItem(item) + echo "added item" method addChat*(self: Module, itemId: string) = let ind = self.view.exemptionsModel().findIndexForItemId(itemId)