From ff58221d7a7100089eff0a3925945344c5a2937e Mon Sep 17 00:00:00 2001 From: Aurastic <33085835+ISenseAura@users.noreply.github.com> Date: Sun, 15 Mar 2026 16:59:04 +0530 Subject: [PATCH] Preact: Skip notifications for ignored users (#2584) --- play.pokemonshowdown.com/src/panel-chat.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/play.pokemonshowdown.com/src/panel-chat.tsx b/play.pokemonshowdown.com/src/panel-chat.tsx index f0c0fce8b..2f2a28743 100644 --- a/play.pokemonshowdown.com/src/panel-chat.tsx +++ b/play.pokemonshowdown.com/src/panel-chat.tsx @@ -147,7 +147,8 @@ export class ChatRoom extends PSRoom { if (toID(fromUser) === PS.user.userid) break; const message = args[args[0] === 'c:' ? 3 : 2]; const noNotify = this.log?.parseChatMessage(message, name, args[1])?.[2]; - if (!noNotify) { + const isIgnored = PS.prefs.ignore?.[toID(fromUser)]; + if (!noNotify && !isIgnored) { let textContent = message; if (/^\/(log|raw|html|uhtml|uhtmlchange) /.test(message)) { textContent = message.split(' ').slice(1).join(' ')