mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
FeedReader:
- Recalculate message count of the user notify when a feed with new items is deleted. - Set deleted message to read and !new. - Added test feed item in notify settings. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6072 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6f7c424b1f
commit
ddc4a37a93
11 changed files with 78 additions and 2 deletions
|
@ -204,6 +204,7 @@ static void feedMsgToInfo(const RsFeedReaderMsg *msg, FeedMsgInfo &info)
|
|||
|
||||
info.flag.isnew = (msg->flag & RS_FEEDMSG_FLAG_NEW);
|
||||
info.flag.read = (msg->flag & RS_FEEDMSG_FLAG_READ);
|
||||
info.flag.deleted = (msg->flag & RS_FEEDMSG_FLAG_DELETED);
|
||||
}
|
||||
|
||||
void p3FeedReader::setNotify(RsFeedReaderNotify *notify)
|
||||
|
@ -758,7 +759,8 @@ bool p3FeedReader::removeMsg(const std::string &feedId, const std::string &msgId
|
|||
return false;
|
||||
}
|
||||
|
||||
msgIt->second->flag |= RS_FEEDMSG_FLAG_DELETED;
|
||||
msgIt->second->flag |= RS_FEEDMSG_FLAG_DELETED | RS_FEEDMSG_FLAG_READ;
|
||||
msgIt->second->flag &= ~RS_FEEDMSG_FLAG_NEW;
|
||||
}
|
||||
|
||||
if (changed) {
|
||||
|
@ -803,7 +805,8 @@ bool p3FeedReader::removeMsgs(const std::string &feedId, const std::list<std::st
|
|||
continue;
|
||||
}
|
||||
|
||||
msgIt->second->flag |= RS_FEEDMSG_FLAG_DELETED;
|
||||
msgIt->second->flag |= RS_FEEDMSG_FLAG_DELETED | RS_FEEDMSG_FLAG_READ;
|
||||
msgIt->second->flag &= ~RS_FEEDMSG_FLAG_NEW;
|
||||
|
||||
removedMsgs.push_back(*idIt);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue