mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 09:26:18 -05:00
Merge pull request #805 from PhenomRetroShare/Fix_Commit_#77adc82
Fix Commit #77adc82
This commit is contained in:
commit
9a7f78f1c7
@ -1850,14 +1850,18 @@ void GxsForumThreadWidget::setMsgReadStatus(QList<QTreeWidgetItem*> &rows, bool
|
||||
rsGxsForums->setMessageReadStatus(token, msgPair, read);
|
||||
|
||||
// Look if older version exist to mark them too
|
||||
QMap<RsGxsMessageId,QVector<QPair<time_t,RsGxsMessageId> > >::const_iterator it = mPostVersions.find(mOrigThreadId) ;
|
||||
QMap<RsGxsMessageId,QVector<QPair<time_t,RsGxsMessageId> > >::const_iterator it = mPostVersions.find(RsGxsMessageId(msgId)) ;
|
||||
if(it != mPostVersions.end())
|
||||
{
|
||||
std::cerr << (*it).size() << " versions found " << std::endl;
|
||||
for(int i=0;i<(*it).size();++i)
|
||||
{
|
||||
msgPair = std::make_pair( groupId(), (*it)[i].second );
|
||||
rsGxsForums->setMessageReadStatus(token, msgPair, read);
|
||||
RsGxsMessageId found = (*it)[i].second;
|
||||
if(found != RsGxsMessageId(msgId))
|
||||
{
|
||||
msgPair = std::make_pair( groupId(), found );
|
||||
rsGxsForums->setMessageReadStatus(token, msgPair, read);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user