mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-18 05:50:39 -04:00
transfers - add peer names for turtle routed sources
This commit is contained in:
parent
cf2edb50b4
commit
6a2181ca14
4 changed files with 28 additions and 2 deletions
|
@ -58,6 +58,8 @@
|
|||
#include <retroshare/rsdisc.h>
|
||||
#include <retroshare/rsplugin.h>
|
||||
|
||||
#include <retroshare/rsturtle.h>
|
||||
|
||||
/* Images for context menu icons */
|
||||
#define IMAGE_INFO ":/images/fileinfo.png"
|
||||
#define IMAGE_CANCEL ":/images/delete.png"
|
||||
|
@ -1388,10 +1390,11 @@ QString TransfersDialog::getPeerName(const RsPeerId& id) const
|
|||
//
|
||||
if(res == "")
|
||||
{
|
||||
res = QString::fromStdString(rsTurtle->getPeerNameForVirtualPeerId(id));
|
||||
if(rsFiles->isEncryptedSource(id))
|
||||
return tr("Anonymous end-to-end encrypted tunnel 0x")+QString::fromStdString(id.toStdString()).left(8) ;
|
||||
return tr("e2ee tunnel ")+QString::fromStdString(id.toStdString()).left(8) + " via " +res ;
|
||||
else
|
||||
return tr("Anonymous tunnel 0x")+QString::fromStdString(id.toStdString()).left(8) ;
|
||||
return tr("Anon tunnel ")+QString::fromStdString(id.toStdString()).left(8) + " via " +res ;
|
||||
}
|
||||
else
|
||||
return res ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue