mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-24 05:21:58 +00:00
fix: chat update
This commit is contained in:
parent
0eb0ea03d4
commit
8c989c3b6c
@ -45,6 +45,7 @@ proc delete*(self: ChatModel) =
|
|||||||
|
|
||||||
proc update*(self: ChatModel, chats: seq[Chat], messages: seq[Message]) =
|
proc update*(self: ChatModel, chats: seq[Chat], messages: seq[Message]) =
|
||||||
for chat in chats:
|
for chat in chats:
|
||||||
|
if chat.isActive:
|
||||||
self.channels[chat.id] = chat
|
self.channels[chat.id] = chat
|
||||||
self.events.emit("chatUpdate", ChatUpdateArgs(messages: messages, chats: chats))
|
self.events.emit("chatUpdate", ChatUpdateArgs(messages: messages, chats: chats))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user