mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 00:25:16 -04:00
Improved the default recommendation text
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5166 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c0e066598d
commit
39c3d013f5
24 changed files with 468 additions and 100 deletions
|
@ -407,7 +407,7 @@ static QString buildRecommendHtml(const std::list<std::string> &sslIds, const st
|
|||
|
||||
QString MessageComposer::recommendMessage()
|
||||
{
|
||||
return tr("I recommend a good friend of me, you can trust him too when you trust me. <br> Copy friend link and paste to Friends list");
|
||||
return tr("Hello,<br>I recommend a good friend of me, you can trust him too when you trust me. <br>");
|
||||
}
|
||||
|
||||
void MessageComposer::recommendFriend(const std::list <std::string> &sslIds, const std::string &to, const QString &msg, bool autoSend)
|
||||
|
@ -432,10 +432,16 @@ void MessageComposer::recommendFriend(const std::list <std::string> &sslIds, con
|
|||
if (!to.empty()) {
|
||||
composer->addRecipient(TO, to, false);
|
||||
}
|
||||
|
||||
std::string ownId = rsPeers->getOwnId();
|
||||
RetroShareLink link;
|
||||
link.createPerson(ownId);
|
||||
|
||||
QString sMsgText = msg.isEmpty() ? recommendMessage() : msg;
|
||||
sMsgText += "<br><br>";
|
||||
sMsgText += recommendHtml;
|
||||
sMsgText += "<br>";
|
||||
sMsgText += tr("This friend is suggested by") + " " + link.toHtml() + "<br><br>" ;
|
||||
sMsgText += tr("Thanks, <br>The RetroShare Team");
|
||||
composer->setMsgText(sMsgText);
|
||||
|
||||
std::list <std::string>::const_iterator peerIt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue