mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 07:05:26 -04:00
Fixed recommend friend.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4197 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e42c7b6323
commit
4d4c4c0a47
3 changed files with 12 additions and 13 deletions
|
@ -377,17 +377,10 @@ static QString BuildRecommendHtml(std::list<std::string> &peerids)
|
|||
/* process peer ids */
|
||||
std::list <std::string>::iterator peerid;
|
||||
for (peerid = peerids.begin(); peerid != peerids.end(); peerid++) {
|
||||
RsPeerDetails detail;
|
||||
if (rsPeers->getPeerDetails(*peerid, detail) == false) {
|
||||
std::cerr << "MessageComposer::recommendFriend() Couldn't find peer id " << *peerid << std::endl;
|
||||
continue;
|
||||
}
|
||||
|
||||
RetroShareLink link;
|
||||
if (link.createPerson(QString::fromUtf8(detail.name.c_str()), QString::fromStdString(detail.id))) {
|
||||
continue;
|
||||
if (link.createPerson(*peerid)) {
|
||||
text += link.toHtml() + "<br>";
|
||||
}
|
||||
text += link.toHtmlFull() + "<br>";
|
||||
}
|
||||
|
||||
return text;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue