OUT-401: Prevent creation of contact entries for own identities OUT-401
authorThomas
Thu, 15 Feb 2018 13:30:19 +0100
branchOUT-401
changeset 200731da7a34305e
parent 2006 f2b0f06a8a5b
child 2008 fa305b491940
OUT-401: Prevent creation of contact entries for own identities
PEPIdentity.cs
     1.1 --- a/PEPIdentity.cs	Thu Feb 15 13:05:06 2018 +0100
     1.2 +++ b/PEPIdentity.cs	Thu Feb 15 13:30:19 2018 +0100
     1.3 @@ -1649,8 +1649,10 @@
     1.4                  items = null;
     1.5              }
     1.6  
     1.7 -            // If contact doesn't exist, create it
     1.8 -            if (contactExists == false)
     1.9 +            // If contact doesn't exist, create it.
    1.10 +            // Make also sure that it's not an own identity.
    1.11 +            if ((contactExists == false) &&
    1.12 +                (PEPIdentity.GetIsOwnIdentity(address) == false))
    1.13              {
    1.14                  try
    1.15                  {