fix_: store contacts from the backup that were removed

This commit is contained in:
Sale Djenic 2024-10-07 21:35:03 +02:00
parent 55bad8fd7b
commit cf3f847ea8
1 changed files with 2 additions and 1 deletions

View File

@ -603,7 +603,8 @@ func (m *Messenger) HandleSyncInstallationContactV2(state *ReceivedMessageState,
contact, contactFound := state.AllContacts.Load(message.Id) contact, contactFound := state.AllContacts.Load(message.Id)
if !contactFound { if !contactFound {
if message.Removed && !message.Blocked { fromPairedDevice := statusMessage != nil
if fromPairedDevice && message.Removed && !message.Blocked {
// Nothing to do in case if contact doesn't exist // Nothing to do in case if contact doesn't exist
return nil return nil
} }