浏览代码

Always show number of participants badge in toolbar.

Includes showing 1 when user is alone in the room.
master
damencho 9 年前
父节点
当前提交
febaf49d07
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1
    4
      modules/UI/side_pannels/contactlist/ContactList.js

+ 1
- 4
modules/UI/side_pannels/contactlist/ContactList.js 查看文件

@@ -20,10 +20,7 @@ function updateNumberOfParticipants(delta) {
20 20
         return;
21 21
     }
22 22
 
23
-    let buttonIndicatorText = (numberOfContacts === 1) ? '' : numberOfContacts;
24
-    $("#numberOfParticipants")
25
-        .text(buttonIndicatorText)
26
-        .parent()[numberOfContacts > 1 ? 'show' : 'hide']();
23
+    $("#numberOfParticipants").text(numberOfContacts);
27 24
 
28 25
     $("#contacts_container>div.title").text(
29 26
         APP.translation.translateString("contactlist")

正在加载...
取消
保存