mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added warnign when notified CircleMsg cannot be retrieved from DB
This commit is contained in:
parent
32baccae97
commit
efb26ce9c0
@ -559,8 +559,8 @@ void p3GxsCircles::notifyChanges(std::vector<RsGxsNotify *> &changes)
|
|||||||
for (auto msgIdIt(mit->second.begin()), end(mit->second.end()); msgIdIt != end; ++msgIdIt)
|
for (auto msgIdIt(mit->second.begin()), end(mit->second.end()); msgIdIt != end; ++msgIdIt)
|
||||||
{
|
{
|
||||||
RsGxsCircleMsg msg;
|
RsGxsCircleMsg msg;
|
||||||
getCircleRequest(RsGxsGroupId(circle_id),*msgIdIt,msg);
|
if(getCircleRequest(RsGxsGroupId(circle_id),*msgIdIt,msg))
|
||||||
|
{
|
||||||
auto ev = std::make_shared<RsGxsCircleEvent>();
|
auto ev = std::make_shared<RsGxsCircleEvent>();
|
||||||
ev->mCircleId = circle_id;
|
ev->mCircleId = circle_id;
|
||||||
ev->mGxsId = msg.mMeta.mAuthorId;
|
ev->mGxsId = msg.mMeta.mAuthorId;
|
||||||
@ -576,6 +576,9 @@ void p3GxsCircles::notifyChanges(std::vector<RsGxsNotify *> &changes)
|
|||||||
rsEvents->postEvent(ev);
|
rsEvents->postEvent(ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
RsErr()<< __PRETTY_FUNCTION__<<" Cannot request CircleMsg " << *msgIdIt << ". Db not ready?" << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
mCircleCache.erase(circle_id);
|
mCircleCache.erase(circle_id);
|
||||||
mCacheUpdated = true;
|
mCacheUpdated = true;
|
||||||
|
@ -271,21 +271,23 @@ void PeopleDialog::insertCircles(uint32_t token)
|
|||||||
std::list<RsGroupMetaData> gSummaryList;
|
std::list<RsGroupMetaData> gSummaryList;
|
||||||
std::list<RsGroupMetaData>::iterator gsIt;
|
std::list<RsGroupMetaData>::iterator gsIt;
|
||||||
|
|
||||||
if (!rsGxsCircles->getGroupSummary(token,gSummaryList)) {
|
if (!rsGxsCircles->getGroupSummary(token,gSummaryList))
|
||||||
|
{
|
||||||
std::cerr << "PeopleDialog::insertExtCircles() Error getting GroupSummary";
|
std::cerr << "PeopleDialog::insertExtCircles() Error getting GroupSummary";
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}//if (!rsGxsCircles->getGroupSummary(token,gSummaryList))
|
}
|
||||||
|
|
||||||
for(gsIt = gSummaryList.begin(); gsIt != gSummaryList.end(); ++gsIt) {
|
for(gsIt = gSummaryList.begin(); gsIt != gSummaryList.end(); ++gsIt) {
|
||||||
RsGroupMetaData gsItem = (*gsIt);
|
RsGroupMetaData gsItem = (*gsIt);
|
||||||
|
|
||||||
RsGxsCircleDetails details ;
|
RsGxsCircleDetails details ;
|
||||||
if(!rsGxsCircles->getCircleDetails(RsGxsCircleId(gsItem.mGroupId), details)){
|
if(!rsGxsCircles->getCircleDetails(RsGxsCircleId(gsItem.mGroupId), details))
|
||||||
|
{
|
||||||
std::cerr << "(EE) Cannot get details for circle id " << gsItem.mGroupId << ". Circle item is not created!" << std::endl;
|
std::cerr << "(EE) Cannot get details for circle id " << gsItem.mGroupId << ". Circle item is not created!" << std::endl;
|
||||||
continue ;
|
continue ;
|
||||||
}//if(!rsGxsCircles->getCircleDetails(RsGxsCircleId(git->mGroupId), details))
|
}
|
||||||
|
|
||||||
if (details.mCircleType != RsGxsCircleType::EXTERNAL)
|
if (details.mCircleType != RsGxsCircleType::EXTERNAL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user