mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-22 09:01:59 +00:00
Fixes #804 by not considering m.room.redaction when processing basic flood protection.
This commit is contained in:
1 parent
d73d0fc4c2
commit
4bb8da51dd
1 file changed
+6
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user