mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 17:15:16 -04:00
Added a star column for messages.
Recompile of the gui needed. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4217 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3f21835114
commit
c45e7562bb
12 changed files with 800 additions and 370 deletions
|
@ -683,7 +683,7 @@ bool p3MsgService::removeMsgId(const std::string &mid)
|
|||
return changed;
|
||||
}
|
||||
|
||||
bool p3MsgService::markMsgIdRead(const std::string &mid, bool bUnreadByUser)
|
||||
bool p3MsgService::markMsgIdRead(const std::string &mid, bool unreadByUser)
|
||||
{
|
||||
std::map<uint32_t, RsMsgItem *>::iterator mit;
|
||||
uint32_t msgId = atoi(mid.c_str());
|
||||
|
@ -703,7 +703,7 @@ bool p3MsgService::markMsgIdRead(const std::string &mid, bool bUnreadByUser)
|
|||
mi->msgFlags &= ~(RS_MSG_FLAGS_NEW);
|
||||
|
||||
/* set state from user */
|
||||
if (bUnreadByUser) {
|
||||
if (unreadByUser) {
|
||||
mi->msgFlags |= RS_MSG_FLAGS_UNREAD_BY_USER;
|
||||
} else {
|
||||
mi->msgFlags &= ~RS_MSG_FLAGS_UNREAD_BY_USER;
|
||||
|
@ -1311,6 +1311,10 @@ void p3MsgService::initRsMI(RsMsgItem *msg, MessageInfo &mi)
|
|||
{
|
||||
mi.msgflags |= RS_MSG_FORWARDED;
|
||||
}
|
||||
if (msg->msgFlags & RS_MSG_FLAGS_STAR)
|
||||
{
|
||||
mi.msgflags |= RS_MSG_STAR;
|
||||
}
|
||||
|
||||
mi.ts = msg->sendTime;
|
||||
mi.srcId = msg->PeerId();
|
||||
|
@ -1406,6 +1410,10 @@ void p3MsgService::initRsMIS(RsMsgItem *msg, MsgInfoSummary &mis)
|
|||
{
|
||||
mis.msgflags |= RS_MSG_FORWARDED;
|
||||
}
|
||||
if (msg->msgFlags & RS_MSG_FLAGS_STAR)
|
||||
{
|
||||
mis.msgflags |= RS_MSG_STAR;
|
||||
}
|
||||
|
||||
mis.srcId = msg->PeerId();
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue