mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-23 09:22:24 +00:00
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.
This commit is contained in:
1 file changed
+2
-4
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user