fixed displayName error

This commit is contained in:
Stefan Otto
2019-10-30 14:59:34 +01:00
parent a003bcdef0
commit 9256d4c751
+2 -2
View File
@@ -736,11 +736,11 @@ class Room extends EventEmitter
case 'changeDisplayName':
{
// Ensure the Peer is joined.
if (!peer.data.joined)
if (!peer.joined)
throw new Error('Peer not yet joined');
const { displayName } = request.data;
const oldDisplayName = peer.data.displayName;
const oldDisplayName = peer.displayName;
peer.displayName = displayName;