Final tweaks to dummy msgs:

* Added MISSING_MSG flag for GUI support.
 * tweaked message.
 * disabled debugging messages.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4032 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2011-02-11 14:08:04 +00:00
parent 9d2809e4ce
commit 074f382eab
3 changed files with 27 additions and 18 deletions

View file

@ -53,7 +53,7 @@
//#define DISTRIB_DEBUG 1
//#define DISTRIB_THREAD_DEBUG 1
#define DISTRIB_DUMMYMSG_DEBUG 1
//#define DISTRIB_DUMMYMSG_DEBUG 1
RSA *extractPublicKey(RsTlvSecurityKey &key);
RSA *extractPrivateKey(RsTlvSecurityKey &key);

View file

@ -216,8 +216,9 @@ bool p3Forums::getForumThreadList(const std::string &fId, std::list<ThreadInfoSu
tis.childTS = msg->childTS;
/* dummy msg */
tis.title = L"Missing Message";
tis.title = L"[ ... Missing Message ... ]";
tis.msg = L"Placeholder for missing Message";
tis.msgflags |= RS_DISTRIB_MISSING_MSG;
msgs.push_back(tis);
}
@ -282,9 +283,9 @@ bool p3Forums::getForumThreadMsgList(const std::string &fId, const std::string &
tis.childTS = msg->childTS;
/* dummy msg */
tis.title = L"Missing Message";
tis.title = L"[ ... Missing Message ... ]";
tis.msg = L"Placeholder for missing Message";
/* the rest must be gotten from the derived Msg */
tis.msgflags |= RS_DISTRIB_MISSING_MSG;
msgs.push_back(tis);
}
@ -313,8 +314,9 @@ bool p3Forums::getForumMessage(const std::string &fId, const std::string &mId, F
info.ts = dmsg->timestamp;
info.childTS = dmsg->childTS;
info.title = L"Missing Message";
info.title = L"[ ... Missing Message ... ]";
info.msg = L"Placeholder for missing Message";
info.msgflags |= RS_DISTRIB_MISSING_MSG;
info.srcId = "";