Init displayName according LTI
This commit is contained in:
1 parent
e8731a37e5
commit
78fd6e1b78
4 files changed
+68
-38
No files matched your search
@@ -405,6 +405,27 @@ class Room extends EventEmitter
|
||||
|
||||
case 'join':
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
if (peer.socket.handshake.session.passport.user.displayName)
|
||||
{
|
||||
this._notification(
|
||||
peer.socket,
|
||||
'changeDisplayname',
|
||||
{
|
||||
peerId : peer.id,
|
||||
displayName : peer.socket.handshake.session.passport.user.displayName,
|
||||
oldDisplayName : ''
|
||||
},
|
||||
true
|
||||
);
|
||||
}
|
||||
}
|
||||
catch (error)
|
||||
{
|
||||
logger.error(error);
|
||||
}
|
||||
// Ensure the Peer is not already joined.
|
||||
if (peer.joined)
|
||||
throw new Error('Peer already joined');
|
||||
|
||||
Reference in new issue
Block a user