Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix issue with nickname input in chat
isymchychfbe5ef7ee632
diff --git a/app.js b/app.jsindex 84e577dee9..50c1552fac 100644--- a/app.js+++ b/app.js@@ -375,6 +375,7 @@ function initConference(localTracks, connection) {APP.UI.addListener(UIEvents.NICKNAME_CHANGED, function (nickname) {APP.settings.setDisplayName(nickname);room.setDisplayName(nickname);+ APP.UI.changeDisplayName(APP.conference.localId, nickname);});room.on(ConferenceErrors.CONNECTION_ERROR, function () {diff --git a/modules/UI/UI.js b/modules/UI/UI.jsindex bbb164bf3f..a63bc6f2a3 100644--- a/modules/UI/UI.js+++ b/modules/UI/UI.js@@ -155,6 +155,10 @@ UI.changeDisplayName = function (id, displayName) {ContactList.onDisplayNameChange(id, displayName);SettingsMenu.onDisplayNameChange(id, displayName);VideoLayout.onDisplayNameChanged(id, displayName);++ if (APP.conference.isLocalId(id)) {+ Chat.setChatConversationMode(!!displayName);+ }};UI.initConference = function () {diff --git a/modules/UI/side_pannels/chat/Chat.js b/modules/UI/side_pannels/chat/Chat.jsindex 0bcbb09a92..743daea612 100644--- a/modules/UI/side_pannels/chat/Chat.js+++ b/modules/UI/side_pannels/chat/Chat.js@@ -181,10 +181,7 @@ var Chat = {event.preventDefault();var val = UIUtil.escapeHtml(this.value);this.value = '';- if (APP.settings.getDisplayName()) {- eventEmitter.emit(UIEvents.NICKNAME_CHANGED, val);- return;- }+ eventEmitter.emit(UIEvents.NICKNAME_CHANGED, val);}});