Remove invited members when invite sender is banned
It would be nice if active invites could get retracted when a user gets banned. This would aid with invite spam attacks.
For clarity: I mean invites to the room they got banned from. Cleaning up DM invites would need way more support.
So you mean draupnir should reject invitations from rooms that draupnir gets banned from?
Or to a room that draupnir has banned?
Or from a user that draupnir has banned?
I meant, imagine a spammer joins a room, and they invite 100+ random users, draupnir should retract those pending invites when the sender gets banned.
How can draupnir do that?
basic flowchart of how this could be achieved: on room ban:
- fetch state
- filter by
type==m.room.member&&content.membership==invite- for each hit:
- kick member
- for each hit:
Ok, I see what you mean now.
We did this 🎉