update_identity(): if no user_id then have a look if it is an own identity first, and if so call myself()

doc_update_sequoia
Volker Birk 7 years ago
parent 07d006958e
commit be18b1c198

@ -124,6 +124,13 @@ DYNAMIC_API PEP_STATUS update_identity(
if (_no_user_id)
{
status = get_identity(session, identity->address, PEP_OWN_USERID,
&stored_identity);
if (status == PEP_STATUS_OK) {
free_identity(stored_identity);
return myself(session, identity);
}
free(identity->user_id);
identity->user_id = calloc(1, strlen(identity->address) + 6);

Loading…
Cancel
Save