diff --git a/lang/main.json b/lang/main.json index d98229c7d..dcd406475 100644 --- a/lang/main.json +++ b/lang/main.json @@ -5,7 +5,6 @@ "downloadlogs": "Download logs", "feedback": "Give us your feedback", "roomUrlDefaultMsg": "Your conference is currently being created...", - "participant": "Participant", "me": "me", "speaker": "Speaker", "raisedHand": "Would like to speak", diff --git a/modules/UI/UI.js b/modules/UI/UI.js index 568fbd2ba..6af1bef2a 100644 --- a/modules/UI/UI.js +++ b/modules/UI/UI.js @@ -292,7 +292,7 @@ UI.initConference = function () { } // Add myself to the contact list. - ContactList.addContact(id); + ContactList.addContact(id, true); //update default button states before showing the toolbar //if local role changes buttons state will be again updated diff --git a/modules/UI/side_pannels/contactlist/ContactList.js b/modules/UI/side_pannels/contactlist/ContactList.js index c59a3445f..e9577ef89 100644 --- a/modules/UI/side_pannels/contactlist/ContactList.js +++ b/modules/UI/side_pannels/contactlist/ContactList.js @@ -96,9 +96,9 @@ var ContactList = { /** * Adds a contact for the given id. - * + * @param isLocal is an id for the local user. */ - addContact (id) { + addContact (id, isLocal) { let contactlist = $('#contacts'); let newContact = document.createElement('li'); @@ -112,7 +112,11 @@ var ContactList = { if (interfaceConfig.SHOW_CONTACTLIST_AVATARS) newContact.appendChild(createAvatar(id)); - newContact.appendChild(createDisplayNameParagraph("participant")); + + newContact.appendChild( + createDisplayNameParagraph( + isLocal ? interfaceConfig.DEFAULT_LOCAL_DISPLAY_NAME : null, + isLocal ? null : interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME)); if (APP.conference.isLocalId(id)) { contactlist.prepend(newContact);