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
feat(conference.js): add 'getParticipantDisplayName'
paweldomas62d2e3e2a4fb
diff --git a/conference.js b/conference.jsindex d12ff9c8df..c06c191812 100644--- a/conference.js+++ b/conference.js@@ -714,6 +714,28 @@ export default {let participant = this.getParticipantById(id);return participant ? participant.isConnectionActive() : null;},+ /**+ * Gets the display name foe the <tt>JitsiParticipant</tt> identified by+ * the given <tt>id</tt>.+ *+ * @param id {string} the participant's id(MUC nickname/JVB endpoint id)+ *+ * @return {string} the participant's display name or the default string if+ * absent.+ */+ getParticipantDisplayName (id) {+ let displayName = getDisplayName(id);+ if (displayName) {+ return displayName;+ } else {+ if (APP.conference.isLocalId(id)) {+ return APP.translation.generateTranslationHTML(+ interfaceConfig.DEFAULT_LOCAL_DISPLAY_NAME);+ } else {+ return interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME;+ }+ }+ },getMyUserId () {return this._room&& this._room.myUserId();