fixed bug causing all GXS ids to be added to contacts. Warning: IDs added to contacts by this bug need to be cleaned manually.

This commit is contained in:
csoler 2019-01-02 00:20:53 +01:00
parent 18c5ab8913
commit 8505561700
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -676,7 +676,7 @@ bool p3IdService::getIdDetails(const RsGxsId &id, RsIdentityDetails &details)
details = data.details;
if(mAutoAddFriendsIdentitiesAsContacts && (!is_a_contact) && (details.mFlags & RS_IDENTITY_FLAGS_PGP_KNOWN))
if(mAutoAddFriendsIdentitiesAsContacts && (!is_a_contact) && (details.mFlags & RS_IDENTITY_FLAGS_PGP_KNOWN) && rsPeers->isPgpFriend(details.mPgpId))
{
mContacts.insert(id) ;
slowIndicateConfigChanged() ;