From 307434e1fe57a1744b48c614d2b79ccaf695a822 Mon Sep 17 00:00:00 2001 From: Jake Taylor <jake@elixxir.io> Date: Fri, 22 Jul 2022 15:27:40 -0500 Subject: [PATCH] made connect.Connect() use Reset instead of Request for auth operation --- connect/authCallbacks.go | 5 +++-- connect/connect.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/connect/authCallbacks.go b/connect/authCallbacks.go index 01eb5e90f..5415267ca 100644 --- a/connect/authCallbacks.go +++ b/connect/authCallbacks.go @@ -148,6 +148,7 @@ func (a serverAuthCallback) Request(requestor contact.Contact, } // Reset will be called when an auth Reset operation occurs. -func (a serverAuthCallback) Reset(contact.Contact, - receptionID.EphemeralIdentity, rounds.Round, *xxdk.E2e) { +func (a serverAuthCallback) Reset(requestor contact.Contact, + receptionId receptionID.EphemeralIdentity, round rounds.Round, messenger *xxdk.E2e) { + a.Request(requestor, receptionId, round, messenger) } diff --git a/connect/connect.go b/connect/connect.go index f6aace42d..526d0780c 100644 --- a/connect/connect.go +++ b/connect/connect.go @@ -93,7 +93,7 @@ func Connect(recipient contact.Contact, messenger *xxdk.E2e, messenger.GetAuth().AddPartnerCallback(recipient.ID, callback) // Perform the auth request - _, err := messenger.GetAuth().Request(recipient, nil) + _, err := messenger.GetAuth().Reset(recipient) if err != nil { return nil, err } -- GitLab