fix: call wakuext_contacts RPC once

include make proposed fix

remove more lines that are already included in `setActiveChannel`
This commit is contained in:
hydr063n 2020-09-17 11:44:21 +02:00 committed by Iuri Matias
parent 70d50110cd
commit 572e0c3e4c
1 changed files with 0 additions and 5 deletions

View File

@ -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()