From a3890ad1c3aa687fe55d10fd1b3e7c43af47edf6 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 3 Apr 2016 11:00:03 -0400 Subject: [PATCH] added gathering of routing clues from lobbies --- libretroshare/src/chat/distributedchat.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libretroshare/src/chat/distributedchat.cc b/libretroshare/src/chat/distributedchat.cc index c730a4a91..f77fb3718 100644 --- a/libretroshare/src/chat/distributedchat.cc +++ b/libretroshare/src/chat/distributedchat.cc @@ -152,6 +152,10 @@ bool DistributedChatService::handleRecvChatLobbyMsgItem(RsChatMsgItem *ci) return false; } + // add a routing clue for this peer/GXSid combination. This is quite reliable since the lobby transport is almost instantaneous + + rsGRouter->addRoutingClue(GRouterKeyId(cli->signature.keyId),cli->PeerId()) ; + ChatLobbyFlags fl ; // delete items that are not for us, as early as possible. @@ -699,6 +703,9 @@ void DistributedChatService::handleRecvChatLobbyEventItem(RsChatLobbyEventItem * std::cerr << std::endl; return ; } + // add a routing clue for this peer/GXSid combination. This is quite reliable since the lobby transport is almost instantaneous + rsGRouter->addRoutingClue(GRouterKeyId(item->signature.keyId),item->PeerId()) ; + if(! bounceLobbyObject(item,item->PeerId())) return ;