From ea1a83d8425acfb664f5825a80c389e5fe87c1d9 Mon Sep 17 00:00:00 2001 From: ruchijain Date: Sun, 13 Jun 2010 10:17:50 +0000 Subject: [PATCH] - 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 --- libretroshare/src/services/p3msgservice.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libretroshare/src/services/p3msgservice.cc b/libretroshare/src/services/p3msgservice.cc index 2be839e77..7a92b66c7 100644 --- a/libretroshare/src/services/p3msgservice.cc +++ b/libretroshare/src/services/p3msgservice.cc @@ -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";