Skip to content

Commit

Permalink
fix #849
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Mar 17, 2024
1 parent f490a78 commit b3411ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ export default class App extends React.Component<AppProps, AppState> {
socket.on('REC:chat', (data: ChatMessage) => {
if (
!getCurrentSettings().disableChatSound &&
!data.system &&
((document.visibilityState && document.visibilityState !== 'visible') ||
this.state.currentTab !== 'chat')
) {
Expand Down

0 comments on commit b3411ac

Please sign in to comment.