Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Adds hidden, and by default disabled, "displayJids" configuration option for debugging purposes.

George Politis4c04708a3a12
diff --git a/app.js b/app.js
index 535dac43fb..2a7edbb21d 100644
--- a/app.js
+++ b/app.js
@@ -685,9 +685,12 @@ $(document).bind('joined.muc', function (event, jid, info) {
// Once we've joined the muc show the toolbar
ToolbarToggler.showToolbar();
- if (info.displayName)
+ var displayName = !config.displayJids
+ ? info.displayName : Strophe.getResourceFromJid(jid);
+
+ if (displayName)
$(document).trigger('displaynamechanged',
- ['localVideoContainer', info.displayName + ' (me)']);
+ ['localVideoContainer', displayName + ' (me)']);
});
$(document).bind('entered.muc', function (event, jid, info, pres) {
@@ -830,9 +833,12 @@ $(document).bind('presence.muc', function (event, jid, info, pres) {
}
});
- if (info.displayName && info.displayName.length > 0)
+ var displayName = !config.displayJids
+ ? info.displayName : Strophe.getResourceFromJid(jid);
+
+ if (displayName && displayName.length > 0)
$(document).trigger('displaynamechanged',
- [jid, info.displayName]);
+ [jid, displayName]);
if (focus !== null && info.displayName !== null) {
focus.setEndpointDisplayName(jid, info.displayName);