fix: load messages from mailserver after rejoining a chat
- bump status-go - clear cursor tables - remove filters after deactivating a chat - channel history is already removed in status-go
This commit is contained in:
parent
a1b7bcfbac
commit
f0c1ad5087
|
@ -257,7 +257,14 @@ proc sortChats(x, y: chat_type.Chat): int =
|
|||
else: -1
|
||||
|
||||
proc leave*(self: ChatModel, chatId: string) =
|
||||
self.removeChatFilters(chatId)
|
||||
if self.msgCursor.hasKey(chatId):
|
||||
self.msgCursor.del(chatId)
|
||||
|
||||
if self.emojiCursor.hasKey(chatId):
|
||||
self.emojiCursor.del(chatId)
|
||||
|
||||
if self.pinnedMsgCursor.hasKey(chatId):
|
||||
self.pinnedMsgCursor.del(chatId)
|
||||
|
||||
if self.channels[chatId].chatType == ChatType.PrivateGroupChat:
|
||||
let leaveGroupResponse = status_chat.leaveGroupChat(chatId)
|
||||
|
@ -265,8 +272,10 @@ proc leave*(self: ChatModel, chatId: string) =
|
|||
|
||||
discard status_chat.deactivateChat(self.channels[chatId])
|
||||
|
||||
self.removeChatFilters(chatId)
|
||||
|
||||
self.channels.del(chatId)
|
||||
discard status_chat.clearChatHistory(chatId)
|
||||
|
||||
self.events.emit("channelLeft", ChatIdArg(chatId: chatId))
|
||||
|
||||
proc init*(self: ChatModel, pubKey: string) =
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 83c384989967131afcb47d7f4df673725adf6a71
|
||||
Subproject commit 31f2a0810d07399dfc23037db00ef315d43f93e8
|
Loading…
Reference in New Issue