mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 19:22:27 +00:00
don't notify from blocked messages
This commit is contained in:
1 parent
aa69856be0
commit
ddaa5ed41a
1 file changed
+4
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user