Ensure that we never show last seen indicator if count is zero
FREEBIE
This commit is contained in:
parent
be981d6f48
commit
fdf04f6229
1 changed files with 2 additions and 2 deletions
|
@ -269,9 +269,9 @@
|
|||
var oldestUnread = this.model.messageCollection.find(function(model) {
|
||||
return model.get('unread');
|
||||
});
|
||||
var unreadCount = this.model.get('unreadCount');
|
||||
|
||||
if (oldestUnread) {
|
||||
var unreadCount = this.model.get('unreadCount');
|
||||
if (oldestUnread && unreadCount > 0) {
|
||||
this.lastSeenIndicator = new Whisper.LastSeenIndicatorView({count: unreadCount});
|
||||
var unreadEl = this.lastSeenIndicator.render().$el;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue