Save contact on unblock
This commit is contained in:
parent
0867458f16
commit
258cbb694f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue