Skip to content

Commit

Permalink
fix_: store contacts from the backup that were removed
Browse files Browse the repository at this point in the history
  • Loading branch information
saledjenic committed Jan 30, 2025
1 parent c993c7f commit 0690be2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protocol/messenger_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,8 @@ func (m *Messenger) HandleSyncInstallationContactV2(state *ReceivedMessageState,

contact, contactFound := state.AllContacts.Load(message.Id)
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
return nil
}
Expand Down

0 comments on commit 0690be2

Please sign in to comment.