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
Checks whether we need to modify document, before change - on display name change.
damencho613569ff0977
diff --git a/modules/UI/side_pannels/contactlist/ContactList.js b/modules/UI/side_pannels/contactlist/ContactList.jsindex 267b78d7e0..d5c23bb686 100644--- a/modules/UI/side_pannels/contactlist/ContactList.js+++ b/modules/UI/side_pannels/contactlist/ContactList.js@@ -153,12 +153,14 @@ var ContactList = {},onDisplayNameChange (id, displayName) {+ if(!displayName)+ return;if (id === 'localVideoContainer') {id = APP.conference.localId;}let contactName = $(`#contacts #${id}>p`);- if (displayName) {+ if (contactName.text() !== displayName) {contactName.text(displayName);}},diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.jsindex 7747ea8225..32c3fd1146 100644--- a/modules/UI/videolayout/RemoteVideo.js+++ b/modules/UI/videolayout/RemoteVideo.js@@ -357,7 +357,9 @@ RemoteVideo.prototype.setDisplayName = function(displayName, key) {// If we already have a display name for this video.if (nameSpan.length > 0) {if (displayName && displayName.length > 0) {- $('#' + this.videoSpanId + '_name').text(displayName);+ var displaynameSpan = $('#' + this.videoSpanId + '_name');+ if (displaynameSpan.text() !== displayName)+ displaynameSpan.text(displayName);}else if (key && key.length > 0) {var nameHtml = APP.translation.generateTranslationHTML(key);