src/pEp_internal.h
branchENGINE-293
changeset 2219 99b05a2f117e
parent 2176 40a3dca592c8
child 2302 3fbe4956dd34
     1.1 --- a/src/pEp_internal.h	Thu Oct 26 17:32:53 2017 +0200
     1.2 +++ b/src/pEp_internal.h	Fri Oct 27 20:02:41 2017 +0200
     1.3 @@ -344,7 +344,8 @@
     1.4          pEp_identity * identity
     1.5      )
     1.6  {
     1.7 -    return identity->user_id && strcmp(identity->user_id, PEP_OWN_USERID) == 0;
     1.8 +    return identity->flags & PEP_idf_me || identity->me || 
     1.9 +           (identity->user_id && strcmp(identity->user_id, PEP_OWN_USERID) == 0);
    1.10  }
    1.11  
    1.12  // size is the length of the bytestr that's coming in. This is really only intended