mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
- Changes for Message Toaster
- Fixed bug for "Welcome Retroshare" msg going to Sent Box git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3121 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
21ee08c974
commit
ea1a83d842
@ -152,8 +152,10 @@ int p3MsgService::incomingMsgs()
|
||||
pqiNotify *notify = getPqiNotify();
|
||||
if (notify)
|
||||
{
|
||||
notify->AddPopupMessage(RS_POPUP_MSG, mi->PeerId(),
|
||||
"from: ");
|
||||
std::string message , title;
|
||||
notify->AddPopupMessage(RS_POPUP_MSG, mi->PeerId(),
|
||||
title.assign(mi->subject.begin(), mi->subject.end()),
|
||||
message.assign(mi->message.begin(),mi->message.end()));
|
||||
|
||||
std::ostringstream out;
|
||||
out << mi->msgId;
|
||||
@ -421,9 +423,11 @@ void p3MsgService::loadWelcomeMsg()
|
||||
/* Load Welcome Message */
|
||||
RsMsgItem *msg = new RsMsgItem();
|
||||
|
||||
msg -> PeerId(mConnMgr->getOwnId());
|
||||
//msg -> PeerId(mConnMgr->getOwnId());
|
||||
|
||||
msg -> sendTime = time(NULL);
|
||||
msg -> sendTime = time(NULL);
|
||||
msg -> recvTime = time(NULL);
|
||||
msg -> msgFlags = RS_MSG_FLAGS_NEW;
|
||||
|
||||
msg -> subject = L"Welcome to Retroshare";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user