Make sure events are propagated out of lobby.

master
Håvar Aambø Fosstveit 2019-11-05 09:47:20 +01:00
parent 7a01017832
commit 5ba83fce5f
1 changed files with 6 additions and 1 deletions

View File

@ -116,7 +116,12 @@ class Lobby extends EventEmitter
{
logger.info('parkPeer() | authenticationChange [peer:"%s"]', peer.id);
peer.authenticated && this.emit('peerAuthenticated', peer);
if (peer.authenticated)
{
this.emit('changeDisplayName', peer);
this.emit('changePicture', peer);
this.emit('peerAuthenticated', peer);
}
};
peer.closeHandler = () =>