src/pEpEngine.c
branchENGINE-140_exclude_identity_from_sync
changeset 1407 10c67fc4e3a7
parent 1406 8d8ae9657388
child 1408 53e4fe24ce2f
     1.1 --- a/src/pEpEngine.c	Fri Nov 18 00:13:40 2016 +0100
     1.2 +++ b/src/pEpEngine.c	Sat Nov 19 01:06:50 2016 +0100
     1.3 @@ -410,12 +410,13 @@
     1.4                              "   join pgp_keypair on fpr = identity.main_key_id"
     1.5                              "   join trust on id = trust.user_id"
     1.6                              "       and pgp_keypair_fpr = identity.main_key_id"
     1.7 -                            "   where identity.user_id = '" PEP_OWN_USERID "';";
     1.8 +                            "   where identity.user_id = '" PEP_OWN_USERID "'"
     1.9 +                            "       and (identity.flags & 1) = 0;";
    1.10          
    1.11          sql_own_keys_retrieve =  
    1.12                              "select fpr from own_keys"
    1.13                              "   join identity"
    1.14 -                            "   where identity.flags & 1 = 0;"; // PEP_idf_not_for_sync
    1.15 +                            "   where (identity.flags & 1) = 0;"; // PEP_idf_not_for_sync
    1.16  
    1.17          sql_set_own_key = "insert or replace into own_keys (address, user_id, fpr)"
    1.18                            " values (?1, '" PEP_OWN_USERID "', upper(replace(?2,' ','')));";