mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
Merge pull request #5110 from urbit/hm/mark-read-only-focused
ChatWindow: only dismiss if tab has focus
This commit is contained in:
commit
1aeeb27717
@ -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