make only default opinion to be changed to positive for contacts (optionally)

This commit is contained in:
csoler 2019-01-03 18:32:08 +01:00
parent 8505561700
commit ca50944ddf
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
2 changed files with 5 additions and 1 deletions

View file

@ -688,7 +688,11 @@ bool p3IdService::getIdDetails(const RsGxsId &id, RsIdentityDetails &details)
// the ones in the contact list. So we change them on demand.
if(is_a_contact && rsReputations->nodeAutoPositiveOpinionForContacts())
{
RsReputations::Opinion op ;
if(rsReputations->getOwnOpinion(id,op) && op == RsReputations::OPINION_NEUTRAL)
rsReputations->setOwnOpinion(id,RsReputations::OPINION_POSITIVE) ;
}
std::map<RsGxsId,keyTSInfo>::const_iterator it = mKeysTS.find(id) ;