From 903a7b6dbc9dd2f91c49ab9d7a2a100e9f8c1c1e Mon Sep 17 00:00:00 2001 From: gnuxie Date: Mon, 24 Mar 2025 19:18:42 +0000 Subject: [PATCH] Passthrough all events for check_event_for_spam. We realise the PDU rate for most homeservers will not be significant... and if it is they can just disable the callback. --- src/protections/RoomTakedown/RoomDiscovery.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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);