From a2a567851e8d944280141b86a0ad9deb88e671e0 Mon Sep 17 00:00:00 2001 From: joss17 Date: Thu, 8 Apr 2010 19:07:16 +0000 Subject: [PATCH] Add own key to p3disc clients git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2694 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3disc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/services/p3disc.cc b/libretroshare/src/services/p3disc.cc index 1f7eb59af..dd2513ff6 100644 --- a/libretroshare/src/services/p3disc.cc +++ b/libretroshare/src/services/p3disc.cc @@ -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