diff --git a/src/protections/RoomTakedown/RoomDiscovery.ts b/src/protections/RoomTakedown/RoomDiscovery.ts index 6c924016..98e2ed15 100644 --- a/src/protections/RoomTakedown/RoomDiscovery.ts +++ b/src/protections/RoomTakedown/RoomDiscovery.ts @@ -131,10 +131,8 @@ export class SynapseHTTPAntispamRoomDiscovery this: SynapseHTTPAntispamRoomDiscovery, { event }: CheckEventForSpamRequestBody ): void { - if (event.type === "m.room.member") { - if (!this.discoveredRooms.has(event.room_id)) { - this.batcher.add(event.room_id); - } + if (!this.discoveredRooms.has(event.room_id)) { + this.batcher.add(event.room_id); } }.bind(this);