Skip to content

Commit 903a7b6

Browse files
committed
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.
1 parent e033d53 commit 903a7b6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/protections/RoomTakedown/RoomDiscovery.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,8 @@ export class SynapseHTTPAntispamRoomDiscovery
131131
this: SynapseHTTPAntispamRoomDiscovery,
132132
{ event }: CheckEventForSpamRequestBody
133133
): void {
134-
if (event.type === "m.room.member") {
135-
if (!this.discoveredRooms.has(event.room_id)) {
136-
this.batcher.add(event.room_id);
137-
}
134+
if (!this.discoveredRooms.has(event.room_id)) {
135+
this.batcher.add(event.room_id);
138136
}
139137
}.bind(this);
140138

0 commit comments

Comments
 (0)