mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-17 10:31:05 -04: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
|
@ -181,12 +181,14 @@ void PopupDistantChatDialog::closeEvent(QCloseEvent *e)
|
|||
PopupChatDialog::closeEvent(e) ;
|
||||
}
|
||||
|
||||
QString PopupDistantChatDialog::getPeerName(const ChatId& /*id*/) const
|
||||
QString PopupDistantChatDialog::getPeerName(const ChatId& /*id*/, QString& additional_info) const
|
||||
{
|
||||
DistantChatPeerInfo tinfo;
|
||||
|
||||
rsMsgs->getDistantChatStatus(_tunnel_id,tinfo) ;
|
||||
|
||||
additional_info = QString("Identity ID: ") + QString::fromStdString(tinfo.to_id.toStdString());
|
||||
|
||||
RsIdentityDetails details ;
|
||||
if(rsIdentity->getIdDetails(tinfo.to_id,details))
|
||||
return QString::fromUtf8( details.mNickname.c_str() ) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue