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) ;

View File

@ -23,7 +23,7 @@
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Anyone in your contact list will automatically have a positive opinion if not set. This allows to automatically raise reputations of used nodes. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>automatically give &quot;Positive&quot; opinion to my contacts</string>
<string>use &quot;positive&quot; as the default opinion for contacts (instead of neutral)</string>
</property>
<property name="checked">
<bool>true</bool>