Fixed missuse of message flag UNPROCESSED as indicator for a NEW message

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7598 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-10-12 15:53:23 +00:00
parent bec735b60a
commit 1bfa4df911
6 changed files with 18 additions and 18 deletions

View file

@ -1390,9 +1390,9 @@ void GxsForumThreadWidget::setMsgReadStatus(QList<QTreeWidgetItem*> &rows, bool
uint32_t status = (*row)->data(COLUMN_THREAD_DATA, ROLE_THREAD_STATUS).toUInt();
uint32_t statusNew = (status & ~(GXS_SERV::GXS_MSG_STATUS_UNREAD | GXS_SERV::GXS_MSG_STATUS_UNPROCESSED)); // orig status, without UNREAD and UNPROCESSED.
uint32_t statusNew = (status & ~(GXS_SERV::GXS_MSG_STATUS_GUI_NEW | GXS_SERV::GXS_MSG_STATUS_GUI_USER_UNREAD)); // orig status, without UNREAD and UNPROCESSED.
if (!read) {
statusNew |= GXS_SERV::GXS_MSG_STATUS_UNREAD;
statusNew |= GXS_SERV::GXS_MSG_STATUS_GUI_USER_UNREAD;
}
if (status != statusNew) // is it different?