ChatWindow: only dismiss if tab has focus

This commit is contained in:
Hunter Miller 2021-07-14 14:25:24 -05:00
parent 8706f8707f
commit ce3f437832

View File

@ -138,7 +138,8 @@ class ChatWindow extends Component<
}
if(this.unreadSet &&
this.dismissedInitialUnread() &&
this.virtualList!.startOffset() < 5) {
this.virtualList!.startOffset() < 5 &&
document.hasFocus()) {
this.props.dismissUnread();
}
}