mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-08-22 16:20:45 +00:00
don't notify from blocked messages
This commit is contained in:
@@ -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