Fix muting notification sounds

This commit is contained in:
Quinton Lee
2016-10-05 23:36:18 -05:00
committed by GitHub
parent a9c72aac79
commit 5a01f555b4

View File

@@ -1118,7 +1118,7 @@
if (autoscroll) {
this.$chatFrame.scrollTop(this.$chat.height());
}
if (!app.focused && !Tools.prefs('muted') && Tools.prefs('notifvolume')) {
if (!app.focused && !Tools.prefs('mute') && Tools.prefs('notifvolume')) {
soundManager.getSoundById('notif').setVolume(Tools.prefs('notifvolume')).play();
}
},
@@ -1450,7 +1450,7 @@
}
if (mayNotify && isHighlighted) {
if (!Tools.prefs('muted') && Tools.prefs('notifvolume')) {
if (!Tools.prefs('mute') && Tools.prefs('notifvolume')) {
soundManager.getSoundById('notif').setVolume(Tools.prefs('notifvolume')).play();
}
var $lastMessage = this.$chat.children().last();