From 332ff74f7739edbd6f554b8bc2716cba2e580d9d Mon Sep 17 00:00:00 2001 From: Luke Policinski Date: Tue, 29 Sep 2026 20:34:41 -0400 Subject: [PATCH] feature: 24 chat reactions --- src/chat/chat.service.spec.ts | 21 +++++++++++++++++++++ src/chat/chat.service.ts | 18 ++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/src/chat/chat.service.spec.ts b/src/chat/chat.service.spec.ts index 1384a5dc..d8546573 100644 --- a/src/chat/chat.service.spec.ts +++ b/src/chat/chat.service.spec.ts @@ -2699,6 +2699,9 @@ describe("ChatService direct messages", () => { it("accepts every reaction on the list", async () => { for (const reaction of ChatService.REACTIONS) { + // The list is longer than a second's allowance; the limit has its own + // tests. + rates = {}; await expect(react(reaction)).resolves.toMatchObject({ toggled: true, }); @@ -2711,6 +2714,24 @@ describe("ChatService direct messages", () => { "fire", "wow", "sad", + "thumbsdown", + "skull", + "sob", + "rofl", + "angry", + "thinking", + "eyes", + "hundred", + "target", + "clap", + "pray", + "handshake", + "tada", + "cool", + "salute", + "muscle", + "goat", + "clown", ]); }); diff --git a/src/chat/chat.service.ts b/src/chat/chat.service.ts index e65996cc..60348079 100644 --- a/src/chat/chat.service.ts +++ b/src/chat/chat.service.ts @@ -125,6 +125,24 @@ export class ChatService { "fire", "wow", "sad", + "thumbsdown", + "skull", + "sob", + "rofl", + "angry", + "thinking", + "eyes", + "hundred", + "target", + "clap", + "pray", + "handshake", + "tada", + "cool", + "salute", + "muscle", + "goat", + "clown", ] as const; // Every toggle is a broadcast to the whole room, so this is what keeps one