mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-27 08:25:53 -04:00
fixed popup of distant chat dialog, and display of peer names.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7406 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1c00055ea9
commit
be82951e2e
8 changed files with 32 additions and 98 deletions
|
@ -149,13 +149,10 @@ QString PopupDistantChatDialog::getPeerName(const DistantChatPeerId &id) const
|
|||
{
|
||||
RsIdentityDetails details ;
|
||||
|
||||
for(int i=0;i<3;++i)
|
||||
if(rsIdentity->getIdDetails(gxs_id,details))
|
||||
return QString::fromUtf8( details.mNickname.c_str() ) ;
|
||||
else
|
||||
usleep(500000) ; // sleep for 500 msec.
|
||||
|
||||
return QString::fromStdString(id.toStdString()) ;
|
||||
if(rsIdentity->getIdDetails(gxs_id,details))
|
||||
return QString::fromUtf8( details.mNickname.c_str() ) ;
|
||||
else
|
||||
return QString::fromStdString(gxs_id.toStdString()) ;
|
||||
}
|
||||
else
|
||||
return ChatDialog::getPeerName(id) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue