mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-17 01:24:15 -05:00
added tooltip to show identity ID in distant chat dialog
This commit is contained in:
parent
5eda5a5bcb
commit
57577472fc
6 changed files with 27 additions and 6 deletions
|
|
@ -311,10 +311,13 @@ bool ChatDialog::hasNewMessages()
|
|||
|
||||
return false;
|
||||
}
|
||||
QString ChatDialog::getPeerName(const ChatId& id) const
|
||||
QString ChatDialog::getPeerName(const ChatId& id, QString& additional_info) const
|
||||
{
|
||||
if(id.isPeerId())
|
||||
{
|
||||
additional_info = QString("Peer ID: ")+QString::fromStdString(id.toPeerId().toStdString());
|
||||
return QString::fromUtf8(rsPeers->getPeerName(id.toPeerId()).c_str()) ;
|
||||
}
|
||||
else
|
||||
return "ChatDialog::getPeerName(): invalid id type passed (RsPeerId is required). This is a bug.";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue