mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-05 01:25:39 -05:00
removed old call to rsIdentity in rsgxsnetservice and removed warning
This commit is contained in:
parent
c00caa967d
commit
967b85c9bf
@ -4128,23 +4128,12 @@ void RsGxsNetService::handleRecvSyncMessage(RsNxsSyncMsgReqItem *item,bool item_
|
|||||||
|
|
||||||
// Check reputation
|
// Check reputation
|
||||||
|
|
||||||
if(!m->mAuthorId.isNull())
|
if(!m->mAuthorId.isNull() && mReputations->overallReputationLevel(m->mAuthorId) < minReputationForForwardingMessages(grpMeta->mSignFlags, details.mFlags))
|
||||||
{
|
{
|
||||||
RsIdentityDetails details ;
|
|
||||||
|
|
||||||
if(!rsIdentity->getIdDetails(m->mAuthorId,details))
|
|
||||||
{
|
|
||||||
std::cerr << /* GXSNETDEBUG_PG(item->PeerId(),item->grpId) << */ " not sending grp message ID " << (*vit)->mMsgId << ", because the identity of the author (" << m->mAuthorId << ") is not accessible (unknown/not cached)" << std::endl;
|
|
||||||
continue ;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(details.mReputation.mOverallReputationLevel < minReputationForForwardingMessages(grpMeta->mSignFlags, details.mFlags))
|
|
||||||
{
|
|
||||||
#ifdef NXS_NET_DEBUG_0
|
#ifdef NXS_NET_DEBUG_0
|
||||||
std::cerr << GXSNETDEBUG_PG(item->PeerId(),item->grpId) << " not sending item ID " << (*vit)->mMsgId << ", because the author is flags " << std::hex << details.mFlags << std::dec << " and reputation level " << details.mReputation.mOverallReputationLevel << std::endl;
|
GXSNETDEBUG_PG(item->PeerId(),item->grpId) << " not sending item ID " << (*vit)->mMsgId << ", because the author is flags " << std::hex << details.mFlags << std::dec << " and reputation level " << details.mReputation.mOverallReputationLevel << std::endl;
|
||||||
#endif
|
#endif
|
||||||
continue ;
|
continue ;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Check publish TS
|
// Check publish TS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user