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