mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-06 01:55:34 -05:00
check that author id is not null before complaining that it does not exist
This commit is contained in:
parent
c71cf7a5ee
commit
fcf8a35081
@ -4218,11 +4218,15 @@ void RsGxsNetService::handleRecvSyncMessage(RsNxsSyncMsgReqItem *item,bool item_
|
|||||||
{
|
{
|
||||||
RsGxsMsgMetaData* m = *vit;
|
RsGxsMsgMetaData* m = *vit;
|
||||||
|
|
||||||
|
// Check reputation
|
||||||
|
|
||||||
|
if(!m->mAuthorId.isNull())
|
||||||
|
{
|
||||||
RsIdentityDetails details ;
|
RsIdentityDetails details ;
|
||||||
|
|
||||||
if(!rsIdentity->getIdDetails(m->mAuthorId,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 is not accessible (unknown/not cached)" << std::endl;
|
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 ;
|
continue ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4233,6 +4237,7 @@ void RsGxsNetService::handleRecvSyncMessage(RsNxsSyncMsgReqItem *item,bool item_
|
|||||||
//#endif
|
//#endif
|
||||||
continue ;
|
continue ;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Check publish TS
|
// Check publish TS
|
||||||
|
|
||||||
if(item->createdSinceTS > (*vit)->mPublishTs || (*vit)->mPublishTs + max_send_delay < now)
|
if(item->createdSinceTS > (*vit)->mPublishTs || (*vit)->mPublishTs + max_send_delay < now)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user