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

MSC3254: Add "knock" membership to /members filters #3254

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

jaller94
Copy link
Contributor

@jaller94 jaller94 commented Jun 20, 2021

I assume it's an oversight that the filters of GET /_matrix/client/r0/rooms/{roomId}/members doesn't include "knock" as a possible membership state.

The response format lists knock as a possible value because it's referencing MemberEvent.

@jaller94 jaller94 changed the title Add "knock" membership to /members endpoint MSC3254: Add "knock" membership to /members endpoint Jun 20, 2021
@jaller94 jaller94 changed the title MSC3254: Add "knock" membership to /members endpoint MSC3254: Add "knock" membership to /members filters Jun 20, 2021
@anoadragon453
Copy link
Member

anoadragon453 commented Jun 22, 2021

This does look like an oversight in the MSC, and may require another MSC to rectify. I don't think we can add it in the implementation just at the moment I'm afraid. I thought this was a PR against Synapse -- it's too early :)

Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

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

Scratch my above comment. I chatted with other members of the Spec Core Team and we agree that this is an obvious consequence of #2403, and the update is so small as not to warrant a new MSC over it.

As for the code, it looks good to me! Thanks for catching it.

(For reference, Synapse's implementation already accepts knock on this endpoint.)

@anoadragon453 anoadragon453 merged commit d86f8aa into master Jun 22, 2021
@jaller94 jaller94 deleted the j94/members-knock branch June 22, 2021 13:02
@jaller94 jaller94 restored the j94/members-knock branch June 22, 2021 13:03
turt2live added a commit that referenced this pull request Jun 22, 2021
richvdh pushed a commit that referenced this pull request Aug 23, 2021
richvdh pushed a commit that referenced this pull request Aug 27, 2021
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.

None yet

2 participants