mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix Commit #77adc82
Fix Missing messages when mark all as read.
This commit is contained in:
parent
add529ffd3
commit
79bbe0e5bb
@ -1850,14 +1850,18 @@ 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;
|
||||||
rsGxsForums->setMessageReadStatus(token, msgPair, read);
|
if(found != RsGxsMessageId(msgId))
|
||||||
|
{
|
||||||
|
msgPair = std::make_pair( groupId(), found );
|
||||||
|
rsGxsForums->setMessageReadStatus(token, msgPair, read);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user