fixed duplication of messages in ChatLobbyDialog

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4744 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-12-29 08:40:23 +00:00
parent b6f8e2a306
commit fb263f2fcc

View File

@ -493,8 +493,10 @@ void p3ChatService::checkAndRedirectMsgToLobby(RsChatMsgItem *ci)
vpeer_id = it->second.virtual_peer_id ;
}
recvLobbyChat(lobbyItem) ; // needs the proper peerId
ci->PeerId(vpeer_id) ; // thenthe peer Id is changed to the lobby id (virtual peer id).
if(recvLobbyChat(lobbyItem))
ci->PeerId(vpeer_id) ; // the peer Id is changed to the lobby id (virtual peer id).
else
ci->PeerId(std::string()) ; // reset the peer id to prevent display of message.
}