fix: call wakuext_contacts RPC once
include make proposed fix remove more lines that are already included in `setActiveChannel`
This commit is contained in:
parent
70d50110cd
commit
572e0c3e4c
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue