mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 23:45:49 -04:00
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:
parent
b3a33206b1
commit
55c4cf895a
2 changed files with 3 additions and 2 deletions
|
@ -499,7 +499,7 @@ void GxsForumMsgItem::setAsRead()
|
||||||
RsGxsGrpMsgIdPair msgPair = std::make_pair(groupId(), messageId());
|
RsGxsGrpMsgIdPair msgPair = std::make_pair(groupId(), messageId());
|
||||||
|
|
||||||
uint32_t token;
|
uint32_t token;
|
||||||
rsGxsForums->setMessageReadStatus(token, msgPair, false);
|
rsGxsForums->setMessageReadStatus(token, msgPair, true);
|
||||||
|
|
||||||
setReadStatus(false, false);
|
setReadStatus(false, false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -329,7 +329,8 @@ void GxsForumThreadWidget::updateDisplay(bool complete)
|
||||||
/* Update threads */
|
/* Update threads */
|
||||||
insertThreads();
|
insertThreads();
|
||||||
} else {
|
} 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()) {
|
if (msgIds.find(mForumId) != msgIds.end()) {
|
||||||
/* Update threads */
|
/* Update threads */
|
||||||
insertThreads();
|
insertThreads();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue