From ca50944ddf4776bff88fd58e2f5a039db33bdb6c Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 3 Jan 2019 18:32:08 +0100 Subject: [PATCH] make only default opinion to be changed to positive for contacts (optionally) --- libretroshare/src/services/p3idservice.cc | 4 ++++ retroshare-gui/src/gui/settings/PeoplePage.ui | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/services/p3idservice.cc b/libretroshare/src/services/p3idservice.cc index 1f26af4b6..91b89520b 100644 --- a/libretroshare/src/services/p3idservice.cc +++ b/libretroshare/src/services/p3idservice.cc @@ -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::const_iterator it = mKeysTS.find(id) ; diff --git a/retroshare-gui/src/gui/settings/PeoplePage.ui b/retroshare-gui/src/gui/settings/PeoplePage.ui index 10560abaa..a654f8a28 100644 --- a/retroshare-gui/src/gui/settings/PeoplePage.ui +++ b/retroshare-gui/src/gui/settings/PeoplePage.ui @@ -23,7 +23,7 @@ <html><head/><body><p>Anyone in your contact list will automatically have a positive opinion if not set. This allows to automatically raise reputations of used nodes. </p></body></html> - automatically give "Positive" opinion to my contacts + use "positive" as the default opinion for contacts (instead of neutral) true