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

Fix knock->leave transition in auth rules #3694

Merged
merged 2 commits into from
Feb 2, 2022
Merged

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Feb 2, 2022

This was an oversight from knocking being added.

For safety, this has been verified as at least intended by Synapse to work:
https://github.com/matrix-org/synapse/blob/f5e2cde3f50c7315d4d7a69e814deb9593943318/synapse/event_auth.py#L390-L391

Preview: https://pr3694--matrix-org-previews.netlify.app

This was an oversight from knocking being added.

For safety, this has been verified as at least intended by Synapse to work:
https://github.com/matrix-org/synapse/blob/f5e2cde3f50c7315d4d7a69e814deb9593943318/synapse/event_auth.py#L390-L391
@turt2live turt2live requested a review from a team February 2, 2022 15:18
@anoadragon453
Copy link
Member

This is also specified in the MSC: https://github.com/Sorunome/matrix-doc/blob/a8f4ada8a843ee89fdcc272b1489ea81471b59d0/proposals/2403-knock.md#membership-changes

@turt2live turt2live merged commit 0f9eadd into main Feb 2, 2022
@turt2live turt2live deleted the travis/fix-knock-leave branch February 2, 2022 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants