Selaa lähdekoodia

Always show number of participants badge in toolbar.

Includes showing 1 when user is alone in the room.
master
damencho 9 vuotta sitten
vanhempi
commit
febaf49d07
1 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. 1
    4
      modules/UI/side_pannels/contactlist/ContactList.js

+ 1
- 4
modules/UI/side_pannels/contactlist/ContactList.js Näytä tiedosto

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

Loading…
Peruuta
Tallenna