From 29a2f15053e9b45e6b451fe8afec38ed79942814 Mon Sep 17 00:00:00 2001 From: Benjamin Wenger <ben@privategrity.com> Date: Thu, 20 Jan 2022 07:08:09 +0000 Subject: [PATCH] fixed delete contact --- api/client.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/api/client.go b/api/client.go index 2d455d90c..2c28d84d3 100644 --- a/api/client.go +++ b/api/client.go @@ -739,13 +739,14 @@ func (c *Client) DeleteContact(partnerId *id.ID) error { "from %s on contact deletion: %+v", partnerId, err) } - if err = c.storage.Auth().Delete(partnerId); err != nil { - return err - } - //delete conversations 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 } -- GitLab