added tooltip to show identity ID in distant chat dialog

This commit is contained in:
csoler 2018-09-24 20:55:27 +02:00
parent 5eda5a5bcb
commit 57577472fc
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
6 changed files with 27 additions and 6 deletions

View file

@ -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() ) ;