ソースを参照

Syncs contactlist display names with thumbnails.

Uses the same display names in the contact list as in the thumbnails, for local and remote.
master
damencho 9年前
コミット
1a0677cb59
3個のファイルの変更8行の追加5行の削除
  1. 0
    1
      lang/main.json
  2. 1
    1
      modules/UI/UI.js
  3. 7
    3
      modules/UI/side_pannels/contactlist/ContactList.js

+ 0
- 1
lang/main.json ファイルの表示

@@ -5,7 +5,6 @@
5 5
     "downloadlogs": "Download logs",
6 6
     "feedback": "Give us your feedback",
7 7
     "roomUrlDefaultMsg": "Your conference is currently being created...",
8
-    "participant": "Participant",
9 8
     "me": "me",
10 9
     "speaker": "Speaker",
11 10
     "raisedHand": "Would like to speak",

+ 1
- 1
modules/UI/UI.js ファイルの表示

@@ -292,7 +292,7 @@ UI.initConference = function () {
292 292
     }
293 293
 
294 294
     // Add myself to the contact list.
295
-    ContactList.addContact(id);
295
+    ContactList.addContact(id, true);
296 296
 
297 297
     //update default button states before showing the toolbar
298 298
     //if local role changes buttons state will be again updated

+ 7
- 3
modules/UI/side_pannels/contactlist/ContactList.js ファイルの表示

@@ -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);

読み込み中…
キャンセル
保存