Update last seen indicator even if window doesn't have focus

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-05-23 09:52:57 -07:00
parent 72019eb79c
commit e023c58883

View file

@ -327,7 +327,10 @@
this.model.messageCollection.add(message, {merge: true});
message.setToExpire();
if (!this.isHidden() && window.isFocused()) {
if (!this.isHidden() && !window.isFocused()) {
this.updateLastSeenIndicator();
}
else if (!this.isHidden() && window.isFocused()) {
this.removeLastSeenIndicator();
this.markRead();
}