mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-13 07:38:54 -05: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
1 changed files with 15 additions and 5 deletions
|
|
@ -45,6 +45,7 @@
|
||||||
#include "util/DateTime.h"
|
#include "util/DateTime.h"
|
||||||
|
|
||||||
#include <retroshare/rspeers.h>
|
#include <retroshare/rspeers.h>
|
||||||
|
#include <retroshare/rsmsgs.h>
|
||||||
#include <retroshare/rsforums.h>
|
#include <retroshare/rsforums.h>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
@ -1597,13 +1598,22 @@ void ForumsDialog::replytomessage()
|
||||||
if (rsPeers->getPeerName(msgInfo.srcId) !="")
|
if (rsPeers->getPeerName(msgInfo.srcId) !="")
|
||||||
{
|
{
|
||||||
MessageComposer *nMsgDialog = MessageComposer::newMsg();
|
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->setQuotedMsg(QString::fromStdWString(msgInfo.msg), buildReplyHeader(msgInfo));
|
||||||
nMsgDialog->addRecipient(MessageComposer::TO, msgInfo.srcId, false);
|
|
||||||
|
//nMsgDialog->addRecipient(MessageComposer::TO, msgInfo.srcId, false);
|
||||||
|
|
||||||
nMsgDialog->show();
|
nMsgDialog->show();
|
||||||
nMsgDialog->activateWindow();
|
nMsgDialog->activateWindow();
|
||||||
|
}
|
||||||
|
|
||||||
/* window will destroy itself! */
|
/* window will destroy itself! */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue