Update NotificationSounds.plugin.js

This commit is contained in:
Mirco Wittrien 2019-08-19 11:34:12 +02:00
parent 22ed49a8e9
commit 18aeaf9d3c
1 changed files with 1 additions and 1 deletions

View File

@ -252,8 +252,8 @@ class NotificationSounds {
var SoundUtils = BDFDB.WebModules.findByProperties("playSound", "createSound");
BDFDB.WebModules.patch(SoundUtils, "playSound", this, {instead: e => {
let type = e.methodArguments[0];
if (this.choices[type]) setImmediate(() => {
let type = e.methodArguments[0];
if (type == "message1") {
if (this.firedEvents["dm"]) this.firedEvents["dm"] = false;
else if (this.firedEvents["mentioned"]) this.firedEvents["mentioned"] = false;