mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 14:26:34 +00:00
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…
x
Reference in New Issue
Block a user