Save contact on unblock

This commit is contained in:
Andrea Maria Piana 2021-12-03 12:38:09 +00:00
parent 0867458f16
commit 258cbb694f
2 changed files with 7 additions and 2 deletions

View File

@ -1 +1 @@
0.91.14
0.91.15

View File

@ -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
}