IOSAD-123 Update identities after import so they have user_id. IOSAD-123
authorDirk Zimmermann <dz@pep.security>
Tue, 23 Jul 2019 16:05:32 +0200
branchIOSAD-123
changeset 10904451b1f94da9
parent 1089 d2f893399df2
child 1091 dfa076b5160f
IOSAD-123 Update identities after import so they have user_id.
pEpObjCAdapter/PEPInternalSession.m
     1.1 --- a/pEpObjCAdapter/PEPInternalSession.m	Tue Jul 23 16:05:32 2019 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession.m	Tue Jul 23 16:05:32 2019 +0200
     1.3 @@ -660,6 +660,11 @@
     1.4          return nil;
     1.5      }
     1.6  
     1.7 +    for (identity_list *_il = identList; _il && _il->ident; _il = _il->next) {
     1.8 +        PEP_STATUS status = update_identity(_session, _il->ident);
     1.9 +        NSLog(@"update_identity() -> %d", status);
    1.10 +    }
    1.11 +
    1.12      NSArray *idents = PEP_arrayFromIdentityList(identList);
    1.13      free(identList);
    1.14