mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-20 11:29:20 +00:00
fix(chat): ensure chatType is set properly
In ebd29d9ffd6d1981160c82a26d35be602b9231a3 we've introduced a regression where the channel list didn't expose the chat's chatType to the view, causing 1-on-1 chats identicons to break. This commit reintrodruces the chatType to the view.
This commit is contained in:
parent
9e25ba1d95
commit
8332e3ac8a
@ -81,8 +81,7 @@ proc join*(self: ChatModel, chatId: string, chatTypeInt: ChatType, isNewChat: bo
|
|||||||
proc load*(self: ChatModel) =
|
proc load*(self: ChatModel) =
|
||||||
let chatList = status_chat.loadChats()
|
let chatList = status_chat.loadChats()
|
||||||
for chat in chatList:
|
for chat in chatList:
|
||||||
# TODO: use correct type of chat instead of hardcoded 2 (assumes it's only public chats)
|
self.join(chat.id, chat.chatType, false)
|
||||||
self.join(chat.id, ChatType.Public, false)
|
|
||||||
self.events.emit("chatsLoaded", ChatArgs(chats: chatList))
|
self.events.emit("chatsLoaded", ChatArgs(chats: chatList))
|
||||||
|
|
||||||
proc leave*(self: ChatModel, chatId: string) =
|
proc leave*(self: ChatModel, chatId: string) =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user