Fixed the set of read state of forum messages in feed item.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7697 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-11-21 23:07:51 +00:00
parent b3a33206b1
commit 55c4cf895a
2 changed files with 3 additions and 2 deletions

View File

@ -499,7 +499,7 @@ void GxsForumMsgItem::setAsRead()
RsGxsGrpMsgIdPair msgPair = std::make_pair(groupId(), messageId());
uint32_t token;
rsGxsForums->setMessageReadStatus(token, msgPair, false);
rsGxsForums->setMessageReadStatus(token, msgPair, true);
setReadStatus(false, false);
}

View File

@ -329,7 +329,8 @@ void GxsForumThreadWidget::updateDisplay(bool complete)
/* Update threads */
insertThreads();
} else {
const std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > &msgIds = getMsgIds();
std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > msgIds;
getAllMsgIds(msgIds);
if (msgIds.find(mForumId) != msgIds.end()) {
/* Update threads */
insertThreads();