From cf3f847ea80f2fbc75589f76a4f99e5c00cf0904 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Mon, 7 Oct 2024 21:35:03 +0200 Subject: [PATCH] fix_: store contacts from the backup that were removed --- protocol/messenger_handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol/messenger_handler.go b/protocol/messenger_handler.go index bbb7d508a..8ff7ffc68 100644 --- a/protocol/messenger_handler.go +++ b/protocol/messenger_handler.go @@ -603,7 +603,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 }