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

Loading…
Cancel
Save