mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge pull request #805 from PhenomRetroShare/Fix_Commit_#77adc82
Fix Commit #77adc82
This commit is contained in:
commit
9a7f78f1c7
@ -1850,16 +1850,20 @@ void GxsForumThreadWidget::setMsgReadStatus(QList<QTreeWidgetItem*> &rows, bool
|
|||||||
rsGxsForums->setMessageReadStatus(token, msgPair, read);
|
rsGxsForums->setMessageReadStatus(token, msgPair, read);
|
||||||
|
|
||||||
// Look if older version exist to mark them too
|
// 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())
|
if(it != mPostVersions.end())
|
||||||
{
|
{
|
||||||
std::cerr << (*it).size() << " versions found " << std::endl;
|
std::cerr << (*it).size() << " versions found " << std::endl;
|
||||||
for(int i=0;i<(*it).size();++i)
|
for(int i=0;i<(*it).size();++i)
|
||||||
{
|
{
|
||||||
msgPair = std::make_pair( groupId(), (*it)[i].second );
|
RsGxsMessageId found = (*it)[i].second;
|
||||||
|
if(found != RsGxsMessageId(msgId))
|
||||||
|
{
|
||||||
|
msgPair = std::make_pair( groupId(), found );
|
||||||
rsGxsForums->setMessageReadStatus(token, msgPair, read);
|
rsGxsForums->setMessageReadStatus(token, msgPair, read);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Add message id to ignore list for the next updateDisplay */
|
/* Add message id to ignore list for the next updateDisplay */
|
||||||
mIgnoredMsgId.push_back(RsGxsMessageId(msgId));
|
mIgnoredMsgId.push_back(RsGxsMessageId(msgId));
|
||||||
|
Loading…
Reference in New Issue
Block a user