<li class="list-group-item" (click)="clicked($event)" [class.active]="selected">
    <span class="badge">{{unreadMessagesCount}}</span>
    {{thread.name}}
</li>
<li class="list-group-item" (click)="clicked($event)" [class.active]="selected">
    <span *ngIf="unreadMessagesCount > 0" class="badge">{{unreadMessagesCount}}</span>
    {{thread.name}}
</li>
Update thread unread message count
Update thread unread message count
