Preact: Support notify and tempnotify highlights (#2488)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run

This commit is contained in:
dot-Comfey 2025-07-30 21:37:49 -07:00 committed by GitHub
parent 95a720011b
commit fca55b15bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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': {