Draupnir icon indicating copy to clipboard operation
Draupnir copied to clipboard

Remove invited members when invite sender is banned

Open TheArcaneBrony opened this issue 1 year ago • 5 comments

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.

TheArcaneBrony avatar Sep 22 '24 15:09 TheArcaneBrony

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?

Gnuxie avatar Oct 02 '24 19:10 Gnuxie

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.

TheArcaneBrony avatar Oct 13 '24 06:10 TheArcaneBrony

How can draupnir do that?

Gnuxie avatar Oct 13 '24 11:10 Gnuxie

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

TheArcaneBrony avatar Oct 13 '24 11:10 TheArcaneBrony

Ok, I see what you mean now.

Gnuxie avatar Oct 13 '24 13:10 Gnuxie

We did this 🎉

Gnuxie avatar Sep 30 '25 11:09 Gnuxie