Enable chat when the displayName is set before joining the room

master
Daniel Berteaud 11 years ago
parent beac9d822a
commit dac515d5f7
  1. 2
      public/js/vroom.js

@ -976,6 +976,8 @@ function initVroom(room) {
peers.local.hasName = true; peers.local.hasName = true;
peers.local.displayName = name; peers.local.displayName = name;
updateDisplayName('local'); updateDisplayName('local');
$('#chatBox').removeAttr('disabled');
$('#chatBox').removeAttr('placeholder');
webrtc.joinRoom(room); webrtc.joinRoom(room);
} }
}); });

Loading…
Cancel
Save