Only notify new chats if chat is active.
This commit is contained in:
parent
1b3190ba6c
commit
ae3c1da114
1 changed files with 7 additions and 6 deletions
|
@ -175,6 +175,7 @@ class App.CustomerChat extends App.Controller
|
|||
if @lastWaitingChatCount isnt counter
|
||||
|
||||
# do not play sound on initial load
|
||||
if @switch()
|
||||
if counter > 0 && @lastWaitingChatCount isnt undefined
|
||||
@sounds.chat_new.play()
|
||||
@notifyDesktop(
|
||||
|
|
Loading…
Reference in a new issue