mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
changed reply to forum post signer to use distant messaging
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6646 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
21eed4c956
commit
7be951eebf
@ -45,6 +45,7 @@
|
||||
#include "util/DateTime.h"
|
||||
|
||||
#include <retroshare/rspeers.h>
|
||||
#include <retroshare/rsmsgs.h>
|
||||
#include <retroshare/rsforums.h>
|
||||
|
||||
#include <algorithm>
|
||||
@ -1597,13 +1598,22 @@ void ForumsDialog::replytomessage()
|
||||
if (rsPeers->getPeerName(msgInfo.srcId) !="")
|
||||
{
|
||||
MessageComposer *nMsgDialog = MessageComposer::newMsg();
|
||||
nMsgDialog->setTitleText(QString::fromStdWString(msgInfo.title), MessageComposer::REPLY);
|
||||
|
||||
std::string hash ;
|
||||
std::string mGpgId = msgInfo.srcId;
|
||||
|
||||
if(rsMsgs->getDistantMessageHash(mGpgId,hash))
|
||||
{
|
||||
nMsgDialog->addRecipient(MessageComposer::TO, hash, mGpgId);
|
||||
|
||||
nMsgDialog->setTitleText(QString::fromStdWString(msgInfo.title), MessageComposer::REPLY);
|
||||
nMsgDialog->setQuotedMsg(QString::fromStdWString(msgInfo.msg), buildReplyHeader(msgInfo));
|
||||
nMsgDialog->addRecipient(MessageComposer::TO, msgInfo.srcId, false);
|
||||
|
||||
//nMsgDialog->addRecipient(MessageComposer::TO, msgInfo.srcId, false);
|
||||
|
||||
nMsgDialog->show();
|
||||
nMsgDialog->activateWindow();
|
||||
}
|
||||
|
||||
/* window will destroy itself! */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user