mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-10 09:09:24 -04:00
Fix Gxs data requests with LATEST flag.
This was broken during a re-write earlier this year. Currently the code incorrectly checks mParentId, this has been fixed to check mOrigMsgId.
This commit is contained in:
parent
b9a5606a25
commit
b0245920aa
@ -1046,9 +1046,9 @@ bool RsGxsDataAccess::getMsgMetaDataList( const GxsMsgReq& msgIds, const RsTokRe
|
|||||||
// Now loop once over message Metas and see if they have a parent. If yes, then mark the parent to be discarded.
|
// Now loop once over message Metas and see if they have a parent. If yes, then mark the parent to be discarded.
|
||||||
|
|
||||||
for(uint32_t i=0;i<metaV.size();++i)
|
for(uint32_t i=0;i<metaV.size();++i)
|
||||||
if(!metaV[i]->mParentId.isNull() && metaV[i]->mParentId != metaV[i]->mMsgId) // this one is a follow up
|
if(!metaV[i]->mOrigMsgId.isNull() && metaV[i]->mOrigMsgId != metaV[i]->mMsgId) // this one is a follow up
|
||||||
{
|
{
|
||||||
auto it = index_in_metaV.find(metaV[i]->mParentId);
|
auto it = index_in_metaV.find(metaV[i]->mOrigMsgId);
|
||||||
|
|
||||||
if(it != index_in_metaV.end())
|
if(it != index_in_metaV.end())
|
||||||
keep[it->second] = false;
|
keep[it->second] = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user