                 action 'selectConv', c
 
         # only play if it is not playing already
-        audioEl.play() if audioEl.paused
+        if !notifierSupportsSound && !viewstate.muteSoundNotification
+            audioEl.play() if audioEl.paused
         # And we hope we don't get another 'currentWindow' ;)
         mainWindow = remote.getCurrentWindow()
         mainWindow.flashFrame(true)

# conv_id markers for call notifications
callNeedAnswer = {}

# sound to hear
audioFile = path.join __dirname, '..', '..', 'media',
'new_message.ogg'
audioEl = new Audio(audioFile)
audioEl.volume = .4


module.exports = (models) ->

                          'New Message'
                wait: true
                sender: 'com.github.yakyak'
                sound: !viewstate.muteSoundNotification && notifierSupportsSound
                icon: icon if !isDarwin && viewstate.showIconNotification
                contentImage: contentImage
            , (err, res) ->
