mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Preact: Skip notifications for ignored users (#2584)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This commit is contained in:
parent
ebe6dee892
commit
ff58221d7a
|
|
@ -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(' ')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user