mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 16:09:35 -05:00
Merge pull request #1175 from PhenomRetroShare/Fix_NewChatInvite
Fix New Chat Invite
This commit is contained in:
commit
63ddccd2ca
@ -1403,13 +1403,14 @@ bool DistributedChatService::acceptLobbyInvite(const ChatLobbyId& lobby_id,const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::map<ChatLobbyId,VisibleChatLobbyRecord>::const_iterator vid = _visible_lobbies.find(lobby_id) ;
|
//std::map<ChatLobbyId,VisibleChatLobbyRecord>::const_iterator vid = _visible_lobbies.find(lobby_id) ;
|
||||||
|
|
||||||
if(_visible_lobbies.end() == vid)
|
//When invited to new Lobby, it is not visible.
|
||||||
{
|
//if(_visible_lobbies.end() == vid)
|
||||||
std::cerr << " (EE) Cannot subscribe a non visible chat lobby!!" << std::endl;
|
//{
|
||||||
return false ;
|
// std::cerr << " (EE) Cannot subscribe a non visible chat lobby!!" << std::endl;
|
||||||
}
|
// return false ;
|
||||||
|
//}
|
||||||
|
|
||||||
RsIdentityDetails det ;
|
RsIdentityDetails det ;
|
||||||
if( (!rsIdentity->getIdDetails(identity,det)) || !(det.mFlags & RS_IDENTITY_FLAGS_IS_OWN_ID))
|
if( (!rsIdentity->getIdDetails(identity,det)) || !(det.mFlags & RS_IDENTITY_FLAGS_IS_OWN_ID))
|
||||||
@ -1418,7 +1419,7 @@ bool DistributedChatService::acceptLobbyInvite(const ChatLobbyId& lobby_id,const
|
|||||||
return false ;
|
return false ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( (vid->second.lobby_flags & RS_CHAT_LOBBY_FLAGS_PGP_SIGNED ) && !(det.mFlags & RS_IDENTITY_FLAGS_PGP_LINKED))
|
if( (it->second.lobby_flags & RS_CHAT_LOBBY_FLAGS_PGP_SIGNED ) && !(det.mFlags & RS_IDENTITY_FLAGS_PGP_LINKED))
|
||||||
{
|
{
|
||||||
std::cerr << " (EE) Cannot subscribe with identity " << identity << " because it is unsigned and the lobby requires signed ids only." << std::endl;
|
std::cerr << " (EE) Cannot subscribe with identity " << identity << " because it is unsigned and the lobby requires signed ids only." << std::endl;
|
||||||
return false ;
|
return false ;
|
||||||
|
Loading…
Reference in New Issue
Block a user