Always show number of participants badge in toolbar.

Includes showing 1 when user is alone in the room.
This commit is contained in:
damencho 2016-09-22 12:02:38 -05:00
parent cfeb03740c
commit febaf49d07
1 changed files with 1 additions and 4 deletions

View File

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