mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 03:43:27 +01:00
Fix some corner casese with last seen indicator
* Remove increment behavior * Dismiss when new messages arrive but the window is focused * Update the indicator when window becomes focused. // FREEBIE
This commit is contained in:
@@ -116,7 +116,7 @@
|
||||
|
||||
var onFocus = function() {
|
||||
if (this.$el.css('display') !== 'none') {
|
||||
this.markRead();
|
||||
this.updateUnread();
|
||||
}
|
||||
}.bind(this);
|
||||
this.window.addEventListener('focus', onFocus);
|
||||
@@ -324,11 +324,8 @@
|
||||
this.model.messageCollection.add(message, {merge: true});
|
||||
message.setToExpire();
|
||||
|
||||
if (this.lastSeenIndicator) {
|
||||
this.lastSeenIndicator.increment(1);
|
||||
}
|
||||
|
||||
if (!this.isHidden() && window.isFocused()) {
|
||||
this.removeLastSeenIndicator();
|
||||
this.markRead();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user