Add own key to p3disc clients

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2684 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-04-05 19:51:00 +00:00
parent f46978fbcd
commit 12050089da

View File

@ -220,7 +220,7 @@ void p3disc::sendAllInfoToJustConnectedPeer(std::string id)
#endif
RsPeerDetails pd;
rsPeers->getPeerDetails(id, pd);
if (!pd.accept_connection || !pd.ownsign) {
if (!pd.accept_connection || (!pd.ownsign && pd.gpg_id != rsPeers->getGPGOwnId())) { //only send info when connection is accepted and gpg key is signed or our own key
#ifdef P3DISC_DEBUG
std::cerr << "p3disc::sendAllInfoToJustConnectedPeer() we're not sending the info because the destination gpg key is not signed or not accepted." << std::cerr << std::endl;
#endif