Skip to content

Commit

Permalink
Update last seen indicator even if window doesn't have focus
Browse files Browse the repository at this point in the history
FREEBIE
  • Loading branch information
scottnonnenberg committed May 23, 2017
1 parent 72019eb commit e023c58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/views/conversation_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit e023c58

Please sign in to comment.