mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Ignore updates of not existing groups in RsGenExchange::processGrpMask.
Solves: "Error code: no such column: subscribeFlagGXS_MASK_HACK"
This commit is contained in:
parent
6e1a8fac10
commit
4cc1df3c12
1 changed files with 7 additions and 1 deletions
|
@ -1718,7 +1718,7 @@ void RsGenExchange::processGrpMetaChanges()
|
|||
// process mask
|
||||
bool ok = processGrpMask(g.grpId, g.val);
|
||||
|
||||
ok &= mDataStore->updateGroupMetaData(g) == 1;
|
||||
ok = ok && (mDataStore->updateGroupMetaData(g) == 1);
|
||||
|
||||
if(ok)
|
||||
{
|
||||
|
@ -1761,6 +1761,12 @@ bool RsGenExchange::processGrpMask(const RsGxsGroupId& grpId, ContentValue &grpC
|
|||
if((mit = grpMetaMap.find(grpId)) != grpMetaMap.end())
|
||||
{
|
||||
grpMeta = mit->second;
|
||||
if (!grpMeta)
|
||||
{
|
||||
std::cerr << "RsGenExchange::processGrpMask() Ignore update for not existing grp id " << grpId.toStdString();
|
||||
std::cerr << std::endl;
|
||||
return false;
|
||||
}
|
||||
ok = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue