do not trigger markRead if conversation isHidden

pull/1340/head
Audric Ackermann 5 years ago
parent 56a81ccc93
commit d1bd829011
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -391,10 +391,7 @@
this.window.addEventListener('resize', this.onResize);
this.onFocus = () => {
if (
this.$el.css('display') !== 'none' &&
this.$el.css('display') !== ''
) {
if (!this.isHidden()) {
this.markRead();
}
};
@ -2654,7 +2651,8 @@
isHidden() {
return (
this.$el.css('display') === 'none' ||
(this.$el.css('display') !== 'none' &&
this.$el.css('display') !== '') ||
this.$('.panel').css('display') === 'none'
);
},

Loading…
Cancel
Save