Ignore redactions in BasicFlooding (fixes #804) (#805)

Fixes #804 by not considering m.room.redaction when processing basic flood protection.
This commit is contained in:
nexy7574 authored and GitHub committed 2025-04-10 10:28:30 +01:00
1 parent d73d0fc4c2
commit 4bb8da51dd
1 file changed
+6
+6
View File
@@ -173,6 +173,12 @@ export class BasicFloodingProtection
log.debug(`Ignoring message from self: ${event.event_id}`);
return Ok(undefined);
}
// If the event is a redaction, ignore it.
// See also: https://github.com/the-draupnir-project/Draupnir/issues/804
if (event["type"] === "m.room.redaction") {
log.debug(`Ignoring redaction: ${event.event_id}`);
return Ok(undefined);
}
const forUser = lastEventsForUser(
this.lastEvents,
event.room_id,