changePicture on signIn
This commit is contained in:
+13
-1
@@ -91,7 +91,7 @@ class Lobby extends EventEmitter
|
||||
|
||||
this._notification(peer.socket, 'enteredLobby');
|
||||
|
||||
if (config.requireSignInToAccess && !peer.authenticated && !super.isLocked)
|
||||
if (config.requireSignInToAccess && !peer.authenticated && !super.isLocked())
|
||||
this._notification(peer.socket, 'signInRequired');
|
||||
|
||||
this._peers.set(peer.id, peer);
|
||||
@@ -160,6 +160,18 @@ class Lobby extends EventEmitter
|
||||
|
||||
cb();
|
||||
|
||||
break;
|
||||
}
|
||||
case 'changePicture':
|
||||
{
|
||||
const { picture } = request.data;
|
||||
|
||||
peer.picture = picture;
|
||||
|
||||
this.emit('changePicture', peer);
|
||||
|
||||
cb();
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user