From ba3d10b528fb3c756b4ce756a139e94a0fb7c009 Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Thu, 6 Jul 2023 01:44:59 +0100 Subject: [PATCH] fix: handle remove all reactions event --- src/bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.ts b/src/bot.ts index d13025b6..6b5b3780 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -1325,7 +1325,7 @@ export class DiscordBot { "m.annotation" ); - const filteredChunk = chunk.filter((event) => event.sender === this.bridge.botUserId); + const filteredChunk = chunk.filter((event) => this.bridge.isNamespacedUser(event.sender)); await Promise.all(filteredChunk.map(async (event) => { try {