Skip to content

Commit

Permalink
Merge pull request #979 from PhenomRetroShare/Fix_LobbyAutoSubscribe
Browse files Browse the repository at this point in the history
Fix Lobby auto-subscribe.
  • Loading branch information
csoler committed Aug 3, 2017
2 parents 4b820a0 + 27bedf8 commit 4e02c5f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions libretroshare/src/chat/distributedchat.cc
Expand Up @@ -577,14 +577,18 @@ void DistributedChatService::handleRecvChatLobbyList(RsChatLobbyListItem *item)
}

RsIdentityDetails idd ;
if(IS_PGP_SIGNED_LOBBY(flags)
&& (!rsIdentity->getIdDetails(gxsId,idd)
|| !(idd.mFlags & RS_IDENTITY_FLAGS_PGP_LINKED)) )
if(!rsIdentity->getIdDetails(gxsId,idd))
std::cerr << "(EE) Lobby auto-subscribe: Can't get Id detail for:" << gxsId.toStdString().c_str() << std::endl;
else
{
std::cerr << "(EE) Attempt to auto-subscribe to signed lobby with non signed Id. Remove it." << std::endl;
setLobbyAutoSubscribe(*it, false);
} else {
joinVisibleChatLobby(*it,gxsId);
if(IS_PGP_SIGNED_LOBBY(flags)
&& !(idd.mFlags & RS_IDENTITY_FLAGS_PGP_LINKED) )
{
std::cerr << "(EE) Attempt to auto-subscribe to signed lobby with non signed Id. Remove it." << std::endl;
setLobbyAutoSubscribe(*it, false);
} else {
joinVisibleChatLobby(*it,gxsId);
}
}
}

Expand Down

0 comments on commit 4e02c5f

Please sign in to comment.