Updated GUI to use new Message / Mail interface.

Configuration is in MessageInterface.h for the moment



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8067 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2015-03-22 04:52:53 +00:00
parent 7cece484c4
commit 926dd3c8e4
15 changed files with 126 additions and 79 deletions

View file

@ -35,6 +35,8 @@
#include <retroshare/rspeers.h>
#include <retroshare/rsidentity.h>
#include "gui/msgs/MessageInterface.h"
/****
* #define DEBUG_ITEM 1
****/
@ -75,10 +77,10 @@ void MsgItem::updateItemStatic()
MessageInfo mi;
if (!rsMsgs)
if (!rsMail)
return;
if (!rsMsgs->getMessage(mMsgId, mi))
if (!rsMail->getMessage(mMsgId, mi))
return;
/* get peer Id */
@ -263,9 +265,9 @@ void MsgItem::deleteMsg()
std::cerr << "MsgItem::deleteMsg()";
std::cerr << std::endl;
#endif
if (rsMsgs)
if (rsMail)
{
rsMsgs->MessageDelete(mMsgId);
rsMail->MessageDelete(mMsgId);
hide(); /* will be cleaned up next refresh */
}