don't notify from blocked messages

This commit is contained in:
MathMan05
2025-07-09 15:40:01 -05:00
parent aa69856be0
commit ddaa5ed41a
+4 -2
View File
@@ -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;