Skip to content
Snippets Groups Projects
Commit 29a2f150 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed delete contact

parent 3882ed17
No related branches found
No related tags found
1 merge request!170Release
...@@ -739,13 +739,14 @@ func (c *Client) DeleteContact(partnerId *id.ID) error { ...@@ -739,13 +739,14 @@ func (c *Client) DeleteContact(partnerId *id.ID) error {
"from %s on contact deletion: %+v", partnerId, err) "from %s on contact deletion: %+v", partnerId, err)
} }
if err = c.storage.Auth().Delete(partnerId); err != nil {
return err
}
//delete conversations //delete conversations
c.storage.Conversations().Delete(partnerId) c.storage.Conversations().Delete(partnerId)
// call delete requests to make sure nothing is lingering.
// this is for saftey to ensure the contact can be readded
// in the future
_ = c.storage.Auth().Delete(partnerId)
return nil return nil
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment