Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove invited members when invite sender is banned #577

Open
TheArcaneBrony opened this issue Sep 22, 2024 · 5 comments
Open

Remove invited members when invite sender is banned #577

TheArcaneBrony opened this issue Sep 22, 2024 · 5 comments
Labels
L2 Few Likelihood P2 Aggravating Priority level T5 Major usability Impairs usability in key scenarios.

Comments

@TheArcaneBrony
Copy link
Contributor

TheArcaneBrony commented Sep 22, 2024

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.

@Gnuxie
Copy link
Member

Gnuxie commented Oct 2, 2024

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?

@TheArcaneBrony
Copy link
Contributor Author

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.

@Gnuxie
Copy link
Member

Gnuxie commented Oct 13, 2024

How can draupnir do that?

@TheArcaneBrony
Copy link
Contributor Author

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

@Gnuxie
Copy link
Member

Gnuxie commented Oct 13, 2024

Ok, I see what you mean now.

@Gnuxie Gnuxie changed the title Retract invites when sender gets banned remove invited members when invite sender is banned Oct 13, 2024
@Gnuxie Gnuxie changed the title remove invited members when invite sender is banned Remove invited members when invite sender is banned Oct 13, 2024
@Gnuxie Gnuxie added L2 Few Likelihood P2 Aggravating Priority level T5 Major usability Impairs usability in key scenarios. labels Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L2 Few Likelihood P2 Aggravating Priority level T5 Major usability Impairs usability in key scenarios.
Projects
Status: No status
Development

No branches or pull requests

2 participants