|
@@ -96,9 +96,9 @@ var ContactList = {
|
96
|
96
|
|
97
|
97
|
/**
|
98
|
98
|
* Adds a contact for the given id.
|
99
|
|
- *
|
|
99
|
+ * @param isLocal is an id for the local user.
|
100
|
100
|
*/
|
101
|
|
- addContact (id) {
|
|
101
|
+ addContact (id, isLocal) {
|
102
|
102
|
let contactlist = $('#contacts');
|
103
|
103
|
|
104
|
104
|
let newContact = document.createElement('li');
|
|
@@ -112,7 +112,11 @@ var ContactList = {
|
112
|
112
|
|
113
|
113
|
if (interfaceConfig.SHOW_CONTACTLIST_AVATARS)
|
114
|
114
|
newContact.appendChild(createAvatar(id));
|
115
|
|
- newContact.appendChild(createDisplayNameParagraph("participant"));
|
|
115
|
+
|
|
116
|
+ newContact.appendChild(
|
|
117
|
+ createDisplayNameParagraph(
|
|
118
|
+ isLocal ? interfaceConfig.DEFAULT_LOCAL_DISPLAY_NAME : null,
|
|
119
|
+ isLocal ? null : interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME));
|
116
|
120
|
|
117
|
121
|
if (APP.conference.isLocalId(id)) {
|
118
|
122
|
contactlist.prepend(newContact);
|