allow for custom notification sounds

This commit is contained in:
MathMan05 2025-01-27 14:07:40 -06:00
parent 1ca64b1d57
commit e791390e2d
5 changed files with 65 additions and 16 deletions

View file

@ -1544,10 +1544,7 @@ class Channel extends SnowFlake {
}
notify(message: Message, deep = 0) {
if (this.localuser.play) {
const voice = this.localuser.play.audios.get(this.localuser.getNotificationSound());
if (voice) {
voice.play();
}
this.localuser.playSound();
}
if (!("Notification" in window)) {
} else if (Notification.permission === "granted") {