Skip to content
Snippets Groups Projects
Commit ee56c780 authored by Jonah Husson's avatar Jonah Husson
Browse files

Add AddIdentity call to login

parent 3370fee7
Branches
Tags
2 merge requests!510Release,!249Increase bindings timeout in cmix params to 45 seconds
...@@ -62,6 +62,7 @@ func LoginE2e(cmixId int, callbacks AuthCallbacks, identity []byte) (*E2e, error ...@@ -62,6 +62,7 @@ func LoginE2e(cmixId int, callbacks AuthCallbacks, identity []byte) (*E2e, error
if err != nil { if err != nil {
return nil, err return nil, err
} }
return e2eTrackerSingleton.make(newE2e), nil return e2eTrackerSingleton.make(newE2e), nil
} }
......
...@@ -168,8 +168,6 @@ func LoginWithProtoClient(storageDir string, password []byte, ...@@ -168,8 +168,6 @@ func LoginWithProtoClient(storageDir string, password []byte,
return nil, err return nil, err
} }
c.network.AddIdentity(c.GetUser().ReceptionID, time.Time{}, true)
// FIXME: The callbacks need to be set, so I suppose we would need to // FIXME: The callbacks need to be set, so I suppose we would need to
// either set them via a special type or add them // either set them via a special type or add them
// to the login call? // to the login call?
...@@ -203,6 +201,9 @@ func login(client *Cmix, callbacks auth.Callbacks, ...@@ -203,6 +201,9 @@ func login(client *Cmix, callbacks auth.Callbacks,
identity.ID.String()) identity.ID.String())
} }
// Add the identity to tracking
client.network.AddIdentity(identity.ID, time.Time{}, true)
e2eGrp := client.GetStorage().GetE2EGroup() e2eGrp := client.GetStorage().GetE2EGroup()
m = &E2e{ m = &E2e{
Cmix: client, Cmix: client,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment