fixed bug causing to not request identities correctly to friends

This commit is contained in:
csoler 2020-07-17 00:27:09 +02:00
parent 016e6445a3
commit e4d9194073
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 3 additions and 3 deletions

View File

@ -3245,7 +3245,7 @@ void RsGxsNetService::locked_genReqGrpTransaction(NxsTransaction* tr)
if( (mGrpAutoSync && !haveItem) || latestVersion) if( (mGrpAutoSync && !haveItem) || latestVersion)
{ {
#ifdef NXS_NET_DEBUG_0 #ifdef NXS_NET_DEBUG_0
GXSNETDEBUG_PG(tr->mTransaction->PeerId(),grpId) << " Identity " << grpId << " will be sync-ed using GXS. mGrpAutoSync:" << mGrpAutoSync << " haveItem:" << haveItem << " latest_version: " << std::endl; GXSNETDEBUG_PG(tr->mTransaction->PeerId(),grpId) << " Identity " << grpId << " will be sync-ed using GXS. mGrpAutoSync:" << mGrpAutoSync << " haveItem:" << haveItem << " latest_version: " << latestVersion << std::endl;
#endif #endif
addGroupItemToList(tr, grpId, transN, reqList); addGroupItemToList(tr, grpId, transN, reqList);
} }

View File

@ -2960,7 +2960,7 @@ void p3IdService::requestIdsFromNet()
#endif #endif
RsGxsIdCache data; RsGxsIdCache data;
if(!mKeyCache.fetch(cit->first,data)) if(mKeyCache.fetch(cit->first,data))
{ {
std::cerr << __PRETTY_FUNCTION__ << ". Dropping request for ID " << cit->first << " at last minute, because it was found in cache"<< std::endl; std::cerr << __PRETTY_FUNCTION__ << ". Dropping request for ID " << cit->first << " at last minute, because it was found in cache"<< std::endl;
auto tmp(cit); auto tmp(cit);