From ddaa5ed41aa42d7e963cde22186799fa4b35045e Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Wed, 9 Jul 2025 15:40:01 -0500 Subject: [PATCH] don't notify from blocked messages --- src/webpage/channel.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/webpage/channel.ts b/src/webpage/channel.ts index c28dcce..3c795cb 100644 --- a/src/webpage/channel.ts +++ b/src/webpage/channel.ts @@ -2302,8 +2302,10 @@ class Channel extends SnowFlake { if (this.localuser.play) { this.localuser.playSound(); } - if (!("Notification" in window)) { - } else if (Notification.permission === "granted") { + if ("Notification" in window && Notification.permission === "granted") { + if (message.author.relationshipType == 2) { + return; + } let noticontent: string | undefined | null = message.content.textContent; if (message.embeds[0]) { noticontent ||= message.embeds[0]?.json.title;