only send name changing events in lobby when the two nicknames are PGP-signed

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8380 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-06-06 11:44:23 +00:00
parent d69e03efd6
commit 20c3777d78

View file

@ -1647,6 +1647,11 @@ bool DistributedChatService::setIdentityForChatLobby(const ChatLobbyId& lobby_id
if (!it->second.gxs_id.isNull() && it->second.gxs_id != nick)
{
RsIdentityDetails det1,det2 ;
// Only send a nickname change event if the two Identities are not anonymous
if(rsIdentity->getIdDetails(nick,det1) && rsIdentity->getIdDetails(it->second.gxs_id,det2) && det1.mPgpLinked && det2.mPgpLinked)
changed = true;
}
}