Skip to content

Never autojoin deactivated & suspended users.#18073

Merged
devonh merged 9 commits intoelement-hq:developfrom
Half-Shot:hs/handle-autoinvite-deactivated-suspended-users
Jan 28, 2025
Merged

Never autojoin deactivated & suspended users.#18073
devonh merged 9 commits intoelement-hq:developfrom
Half-Shot:hs/handle-autoinvite-deactivated-suspended-users

Conversation

@Half-Shot
Copy link
Copy Markdown
Member

@Half-Shot Half-Shot commented Jan 10, 2025

This PR changes the logic so that deactivated users are always ignored. Suspended users were already effectively ignored as Synapse forbids a join while suspended.

@github-actions github-actions Bot deployed to PR Documentation Preview January 10, 2025 14:38 Active
@Half-Shot Half-Shot marked this pull request as ready for review January 13, 2025 10:40
@Half-Shot Half-Shot requested a review from a team as a code owner January 13, 2025 10:40
@Half-Shot Half-Shot changed the title Handle deactived & suspended users for automatic invites Never autojoin deactived & suspended users. Jan 13, 2025
Comment thread synapse/events/auto_accept_invites.py
@anoadragon453 anoadragon453 changed the title Never autojoin deactived & suspended users. Never autojoin deactivated & suspended users. Jan 27, 2025
Copy link
Copy Markdown
Member

@devonh devonh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conversion of the existing logic looks good to me.
Also, the new logic makes sense.

One small issue with an errant comment in the tests, otherwise everything looks good.

Comment thread tests/events/test_auto_accept_invites.py Outdated
@devonh devonh merged commit 628351b into element-hq:develop Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants