Skip to content

Commit

Permalink
Fix: Don't scroll to last seen indicator on focus
Browse files Browse the repository at this point in the history
FREEBIE
  • Loading branch information
scottnonnenberg committed May 27, 2017
1 parent 10c2874 commit c3dc973
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/views/conversation_view.js
Expand Up @@ -116,7 +116,7 @@

var onFocus = function() {
if (this.$el.css('display') !== 'none') {
this.updateUnread();
this.updateUnread({scroll: false});
}
}.bind(this);
this.window.addEventListener('focus', onFocus);
Expand Down Expand Up @@ -206,8 +206,8 @@
this.$('.bottom-bar form').addClass('active');
},

updateUnread: function() {
this.updateLastSeenIndicator();
updateUnread: function(options) {
this.updateLastSeenIndicator(options);
this.model.markRead();
},

Expand Down

0 comments on commit c3dc973

Please sign in to comment.