feat(sync): sync and pair 1-1 chats and groups

Fixes #10324 and https://github.com/status-im/status-go/issues/3547
This commit is contained in:
Jonathan Rainville 2023-10-04 15:00:27 -04:00
parent febc2d061f
commit 48d2f72876
2 changed files with 5 additions and 1 deletions

View File

@ -173,6 +173,10 @@ QtObject:
self.events.emit(SIGNAL_CHAT_MEMBERS_CHANGED, ChatMembersChangedArgs(chatId: chatDto.id, members: chatDto.members))
self.updateOrAddChat(chatDto)
elif self.chats.hasKey(chatDto.id) and self.chats[chatDto.id].active:
# We left the chat
self.events.emit(SIGNAL_CHAT_LEFT, ChatArgs(chatId: chatDto.id))
self.events.emit(SIGNAL_CHAT_UPDATE, ChatUpdateArgs(chats: chats))
if (receivedData.clearedHistories.len > 0):

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit 21ddaa4b9f57288ed99fed04db528f3790b7bd2f
Subproject commit c8910d69fe1ab896557c0217a542c000454974c0