mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge pull request #1945 from b1rdG/fix-createChatLobby-checks
Create chat lobby checks
This commit is contained in:
commit
c90b72152f
@ -1604,6 +1604,12 @@ ChatLobbyId DistributedChatService::createChatLobby(const std::string& lobby_nam
|
||||
#endif
|
||||
ChatLobbyId lobby_id ;
|
||||
{
|
||||
if (!rsIdentity->isOwnId(lobby_identity))
|
||||
{
|
||||
RsErr() << __PRETTY_FUNCTION__ << " lobby_identity RsGxsId id must be own" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
RsStackMutex stack(mDistributedChatMtx); /********** STACK LOCKED MTX ******/
|
||||
|
||||
// create a unique id.
|
||||
|
Loading…
Reference in New Issue
Block a user