feat: admin command for mass-rejecting invites #1741
No reviewers
Labels
No labels
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1741
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "31a/continuwuity:pr-admin-users-invite-commands"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this PR adds the commands
users list-invited-roomsandusers force-reject-invitesto list and respectively reject all currently open invites for a local userthis should help with manually cleaning up invite spam which was not filtered by other mechanisms.
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
Code looks fine to me. Don't forget the news frag. Once checks pass I'm happy to merge this :)
@ -430,0 +487,4 @@.filter_map(async |(room_id, _)| {match leave_room(self.services, &user_id, &room_id, None).await {| Err(ref e) => {warn!(%user_id, "Failed to leave {room_id} remotely: {e}");remotelyisn't necessary hereActually better wording might be
Failed to reject invite to {room_id}: {e}@ -167,2 +173,4 @@},/// Manually make a user reject all current invitesForceRejectInvites {reject-all-invitesis probably a more apt command name thanforce-reject-invitessince it intuitively highlights that all invites are rejectedan artifact of the fact that it originally allowed specific rooms to be targeted, but then 31a decided that that is not useful enough
f9d13936d3b296720540lgtm, thanks!