mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -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
|
@ -234,12 +234,18 @@ bool RetroShareLink::createFile(const QString& name, uint64_t size, const QStrin
|
|||
return valid();
|
||||
}
|
||||
|
||||
bool RetroShareLink::createPerson(const QString& name, const QString& hash)
|
||||
bool RetroShareLink::createPerson(const std::string& id)
|
||||
{
|
||||
clear();
|
||||
|
||||
_name = name;
|
||||
_hash = hash;
|
||||
RsPeerDetails detail;
|
||||
if (rsPeers->getPeerDetails(id, detail) == false) {
|
||||
std::cerr << "RetroShareLink::createPerson() Couldn't find peer id " << id << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
_hash = QString::fromStdString(id);
|
||||
_name = QString::fromUtf8(detail.name.c_str());
|
||||
|
||||
_type = TYPE_PERSON;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue