Skip to content
Snippets Groups Projects
Commit b7c62b40 authored by Jono Wenger's avatar Jono Wenger
Browse files

Add DeleteContact to the bindings layer

parent 0547434c
Branches
Tags
3 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!340Project/channels
......@@ -45,6 +45,19 @@ func (e *E2e) GetReceptionID() []byte {
return e.api.GetE2E().GetReceptionID().Marshal()
}
// DeleteContact removes a partner from E2e's storage.
//
// Parameters:
// - partnerID - the marshalled bytes of id.ID.
func (e *E2e) DeleteContact(partnerID []byte) error {
partner, err := id.Unmarshal(partnerID)
if err != nil {
return err
}
return e.api.DeleteContact(partner)
}
// GetAllPartnerIDs returns a list of all partner IDs that the user has an E2E
// relationship with.
//
......
......@@ -61,7 +61,7 @@ func NewOrLoadStore(kv *versioned.KV) *Store {
s, err := loadStore(kv)
if err != nil {
jww.WARN.Printf(
"ReceptionID store not found, creating a new one: %+v", err)
"ReceptionID store not found, creating a new one: %s", err.Error())
s = &Store{
active: []*registration{},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment