IOSAD-160 Set PEP_idf_not_for_sync when requested IOSAD-160
authorDirk Zimmermann <dz@pep.security>
Tue, 03 Dec 2019 14:07:27 +0100
branchIOSAD-160
changeset 1374851c056db01f
parent 1373 86bc00f43015
child 1375 693a6506fb50
IOSAD-160 Set PEP_idf_not_for_sync when requested
pEpObjCAdapter/PEPInternalSession.m
     1.1 --- a/pEpObjCAdapter/PEPInternalSession.m	Tue Dec 03 14:07:27 2019 +0100
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession.m	Tue Dec 03 14:07:27 2019 +0100
     1.3 @@ -549,6 +549,10 @@
     1.4           error:(NSError * _Nullable * _Nullable)error {
     1.5      pEp_identity *ident = PEP_identityToStruct(identity);
     1.6  
     1.7 +    if (!pEpSyncEnabled) {
     1.8 +        ident->flags |= PEP_idf_not_for_sync;
     1.9 +    }
    1.10 +
    1.11      PEPStatus status = (PEPStatus) myself(_session, ident);
    1.12  
    1.13      if ([NSError setError:error fromPEPStatus:status]) {