mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-09 17:45:15 -04:00
Friend recommendation message
- renamed subject - added to system message Recompile needed git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5145 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1b80207fbe
commit
b81a911793
11 changed files with 107 additions and 69 deletions
|
@ -954,6 +954,9 @@ bool p3MsgService::SystemMessage(const std::wstring &title, const std::wstring &
|
|||
if (systemFlag & RS_MSG_USER_REQUEST) {
|
||||
msg->msgFlags |= RS_MSG_FLAGS_USER_REQUEST;
|
||||
}
|
||||
if (systemFlag & RS_MSG_FRIEND_RECOMMENDATION) {
|
||||
msg->msgFlags |= RS_MSG_FLAGS_FRIEND_RECOMMENDATION;
|
||||
}
|
||||
|
||||
msg->msgId = 0;
|
||||
msg->sendTime = time(NULL);
|
||||
|
@ -1378,6 +1381,10 @@ void p3MsgService::initRsMI(RsMsgItem *msg, MessageInfo &mi)
|
|||
{
|
||||
mi.msgflags |= RS_MSG_USER_REQUEST;
|
||||
}
|
||||
if (msg->msgFlags & RS_MSG_FLAGS_FRIEND_RECOMMENDATION)
|
||||
{
|
||||
mi.msgflags |= RS_MSG_FRIEND_RECOMMENDATION;
|
||||
}
|
||||
|
||||
mi.ts = msg->sendTime;
|
||||
mi.srcId = msg->PeerId();
|
||||
|
@ -1478,6 +1485,10 @@ void p3MsgService::initRsMIS(RsMsgItem *msg, MsgInfoSummary &mis)
|
|||
{
|
||||
mis.msgflags |= RS_MSG_USER_REQUEST;
|
||||
}
|
||||
if (msg->msgFlags & RS_MSG_FLAGS_FRIEND_RECOMMENDATION)
|
||||
{
|
||||
mis.msgflags |= RS_MSG_FRIEND_RECOMMENDATION;
|
||||
}
|
||||
|
||||
mis.srcId = msg->PeerId();
|
||||
{
|
||||
|
@ -1542,6 +1553,10 @@ RsMsgItem *p3MsgService::initMIRsMsg(MessageInfo &info, const std::string &to)
|
|||
{
|
||||
msg->msgFlags |= RS_MSG_FLAGS_USER_REQUEST;
|
||||
}
|
||||
if (info.msgflags & RS_MSG_FRIEND_RECOMMENDATION)
|
||||
{
|
||||
msg->msgFlags |= RS_MSG_FLAGS_FRIEND_RECOMMENDATION;
|
||||
}
|
||||
|
||||
//std::cerr << "p3MsgService::initMIRsMsg()" << std::endl;
|
||||
//msg->print(std::cerr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue