mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Preact: Support notify and tempnotify highlights (#2488)
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
95a720011b
commit
fca55b15bc
|
|
@ -1094,8 +1094,14 @@ export class PSRoom extends PSStreamModel<Args | null> implements RoomOptions {
|
|||
this.title = args[1];
|
||||
PS.update();
|
||||
break;
|
||||
} case 'notify': {
|
||||
const [, title, body, toHighlight] = args;
|
||||
if (toHighlight && !ChatRoom.getHighlight(toHighlight, this.id)) break;
|
||||
this.notify({ title, body });
|
||||
break;
|
||||
} case 'tempnotify': {
|
||||
const [, id, title, body, toHighlight] = args;
|
||||
if (toHighlight && !ChatRoom.getHighlight(toHighlight, this.id)) break;
|
||||
this.notify({ title, body, id });
|
||||
break;
|
||||
} case 'tempnotifyoff': {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user