mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Ensure that we never show last seen indicator if count is zero
FREEBIE
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user