mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix: Don't scroll to last seen indicator on focus
FREEBIE
This commit is contained in:
@@ -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);
|
||||
@@ -206,8 +206,8 @@
|
||||
this.$('.bottom-bar form').addClass('active');
|
||||
},
|
||||
|
||||
updateUnread: function() {
|
||||
this.updateLastSeenIndicator();
|
||||
updateUnread: function(options) {
|
||||
this.updateLastSeenIndicator(options);
|
||||
this.model.markRead();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user