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 {