From 850556170086318a6773b810a5c5330b797bd50d Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 2 Jan 2019 00:20:53 +0100 Subject: [PATCH] fixed bug causing all GXS ids to be added to contacts. Warning: IDs added to contacts by this bug need to be cleaned manually. --- libretroshare/src/services/p3idservice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/services/p3idservice.cc b/libretroshare/src/services/p3idservice.cc index 3704532f1..1f26af4b6 100644 --- a/libretroshare/src/services/p3idservice.cc +++ b/libretroshare/src/services/p3idservice.cc @@ -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() ;