added signInRequired in joinDialog
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
const EventEmitter = require('events').EventEmitter;
|
||||
const Logger = require('./Logger');
|
||||
const config = require('../config/config');
|
||||
|
||||
|
||||
const logger = new Logger('Lobby');
|
||||
|
||||
@@ -89,6 +91,9 @@ class Lobby extends EventEmitter
|
||||
|
||||
this._notification(peer.socket, 'enteredLobby');
|
||||
|
||||
if (config.requireSignInToAccess && !peer.authenticated && !super.isLocked)
|
||||
this._notification(peer.socket, 'signInRequired');
|
||||
|
||||
this._peers.set(peer.id, peer);
|
||||
|
||||
peer.on('authenticationChanged', () =>
|
||||
|
||||
@@ -83,6 +83,11 @@ class Room extends EventEmitter
|
||||
this._handleAudioLevelObserver();
|
||||
}
|
||||
|
||||
isLocked()
|
||||
{
|
||||
return this._locked;
|
||||
}
|
||||
|
||||
close()
|
||||
{
|
||||
logger.debug('close()');
|
||||
|
||||
Reference in New Issue
Block a user