From 7be951eebf1a1c39d2c81a5db27645243954a740 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 29 Aug 2013 20:52:28 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/ForumsDialog.cpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/retroshare-gui/src/gui/ForumsDialog.cpp b/retroshare-gui/src/gui/ForumsDialog.cpp index 1a34854f1..3d950ad77 100644 --- a/retroshare-gui/src/gui/ForumsDialog.cpp +++ b/retroshare-gui/src/gui/ForumsDialog.cpp @@ -45,6 +45,7 @@ #include "util/DateTime.h" #include +#include #include #include @@ -1597,13 +1598,22 @@ void ForumsDialog::replytomessage() if (rsPeers->getPeerName(msgInfo.srcId) !="") { MessageComposer *nMsgDialog = MessageComposer::newMsg(); - nMsgDialog->setTitleText(QString::fromStdWString(msgInfo.title), MessageComposer::REPLY); - nMsgDialog->setQuotedMsg(QString::fromStdWString(msgInfo.msg), buildReplyHeader(msgInfo)); - nMsgDialog->addRecipient(MessageComposer::TO, msgInfo.srcId, false); + std::string hash ; + std::string mGpgId = msgInfo.srcId; - nMsgDialog->show(); - nMsgDialog->activateWindow(); + 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->show(); + nMsgDialog->activateWindow(); + } /* window will destroy itself! */ }