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
No related branches found
No related tags found
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
if err != nil {
return nil, err
}
return e2eTrackerSingleton.make(newE2e), nil
}
......
......@@ -168,8 +168,6 @@ func LoginWithProtoClient(storageDir string, password []byte,
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
// either set them via a special type or add them
// to the login call?
......@@ -203,6 +201,9 @@ func login(client *Cmix, callbacks auth.Callbacks,
identity.ID.String())
}
// Add the identity to tracking
client.network.AddIdentity(identity.ID, time.Time{}, true)
e2eGrp := client.GetStorage().GetE2EGroup()
m = &E2e{
Cmix: client,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment