From 258cbb694f040007d3b360638c9390885dcad8ff Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Fri, 3 Dec 2021 12:38:09 +0000 Subject: [PATCH] Save contact on unblock --- VERSION | 2 +- protocol/messenger_contacts.go | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 88ca5c680..3c23dbe2a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.91.14 +0.91.15 diff --git a/protocol/messenger_contacts.go b/protocol/messenger_contacts.go index 653f5234f..84f4ead68 100644 --- a/protocol/messenger_contacts.go +++ b/protocol/messenger_contacts.go @@ -367,9 +367,14 @@ func (m *Messenger) UnblockContact(contactID string) error { contact.Unblock() contact.LastUpdatedLocally = m.getTimesource().GetCurrentTime() + err := m.persistence.SaveContact(contact, nil) + if err != nil { + return err + } + m.allContacts.Store(contact.ID, contact) - err := m.syncContact(context.Background(), contact) + err = m.syncContact(context.Background(), contact) if err != nil { return err }