From 572e0c3e4c2c7ba05f6660906fd7ea32ad3a530d Mon Sep 17 00:00:00 2001 From: hydr063n Date: Thu, 17 Sep 2020 11:44:21 +0200 Subject: [PATCH] fix: call wakuext_contacts RPC once include make proposed fix remove more lines that are already included in `setActiveChannel` --- src/app/chat/view.nim | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/app/chat/view.nim b/src/app/chat/view.nim index d80a499b9a..eb4c4541f1 100644 --- a/src/app/chat/view.nim +++ b/src/app/chat/view.nim @@ -251,10 +251,6 @@ QtObject: self.activeChannel.setChatItem(selectedChannel) self.status.chat.setActiveChannel(selectedChannel.id) - discard self.status.chat.markAllChannelMessagesRead(selectedChannel.id) - self.currentSuggestions.setNewData(self.status.contacts.getContacts()) - self.setLastMessageTimestamp(true) - self.activeChannelChanged() proc getActiveChannelIdx(self: ChatsView): QVariant {.slot.} = newQVariant(self.chats.chats.findIndexById(self.activeChannel.id)) @@ -287,7 +283,6 @@ QtObject: if(channel == ""): return self.activeChannel.setChatItem(self.chats.getChannel(self.chats.chats.findIndexById(channel))) discard self.status.chat.markAllChannelMessagesRead(self.activeChannel.id) - self.currentSuggestions.setNewData(self.status.contacts.getContacts()) self.setLastMessageTimestamp(true) self.activeChannelChanged()