the-draupnir-project / Draupnir

A Matrix moderation bot
https://the-draupnir-project.github.io/draupnir-documentation/
79 stars 14 forks source link

Recieving a new policy from a watched list (e.g. a consumer of CME) doesn't cause a redaction until someone joins/leaves the room again #210

Closed Gnuxie closed 7 months ago

Gnuxie commented 8 months ago

A spammer joined fluffychat's support room. I issued a CME ban via TNO fluffy consumed the ban and banned the user, but didn't redact the messages because nothing triggered the redaction queue i had to force the queue to trigger by leaving and rejoining in that room. https://github.com/the-draupnir-project/Draupnir/blob/main/src/ProtectedRoomsSet.ts#L216

Mikaela commented 7 months ago

Easier workaround /myroomnick was just tested successfully in the Draupnir room since display name is a part of the join event.