|
|
@ -244,6 +244,19 @@ PEP_STATUS storeGroupKeys( |
|
|
|
identity_list *group_keys = (identity_list *) _group_keys; |
|
|
|
|
|
|
|
for (identity_list *il = group_keys; il && il->ident; il = il->next) { |
|
|
|
|
|
|
|
// Check that identity isn't excluded from sync. |
|
|
|
pEp_identity *stored_identity; |
|
|
|
status = get_identity(session, il->ident->address, PEP_OWN_USERID, |
|
|
|
&stored_identity); |
|
|
|
if (status == PEP_STATUS_OK) { |
|
|
|
if(stored_identity->flags & PEP_idf_not_for_sync){ |
|
|
|
free_identity(stored_identity); |
|
|
|
continue; |
|
|
|
} |
|
|
|
free_identity(stored_identity); |
|
|
|
} |
|
|
|
|
|
|
|
free(il->ident->user_id); |
|
|
|
il->ident->user_id = strdup(PEP_OWN_USERID); |
|
|
|
assert(il->ident->user_id); |
|
|
|