mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-03 04:40:50 +03:00
ChatWindow: only dismiss if tab has focus
This commit is contained in:
parent
8706f8707f
commit
ce3f437832
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user