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

Test knock rooms appear in the public room directory #72

Merged
merged 3 commits into from
Feb 10, 2021

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Feb 9, 2021

This tests the "Changes regarding the Public Rooms Directory" section of knocking MSC2403.

Essentially boiling down to:

  • Knock rooms can be added to and appear in the public room directory.
  • Clients see a join_rule entry in the room result to know whether to knock or not to knock. It really is the question.

@anoadragon453 anoadragon453 force-pushed the anoa/knock_public_room_directory_test branch from 5759777 to 50ee113 Compare February 10, 2021 01:18
tests/msc2403_test.go Outdated Show resolved Hide resolved
Copy link
Member

@kegsay kegsay left a comment

Choose a reason for hiding this comment

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

I don't see how this test runs, but the test itself looks good to me.

@anoadragon453 anoadragon453 force-pushed the anoa/knock_public_room_directory_test branch from 3e044e8 to c35a2c7 Compare February 10, 2021 11:44
@anoadragon453 anoadragon453 merged commit f089b60 into master Feb 10, 2021
@anoadragon453 anoadragon453 deleted the anoa/knock_public_room_directory_test branch February 10, 2021 13:56
anoadragon453 added a commit to matrix-org/synapse-dinsic that referenced this pull request Feb 10, 2021
… can be knocked on (#82)

This PR implements the ["Changes regarding the Public Rooms Directory"](https://github.com/Sorunome/matrix-doc/blob/soru/knock/proposals/2403-knock.md#changes-regarding-the-public-rooms-directory) section of knocking MSC2403.

Specifically, it:

* Allows rooms with `join_rule` "knock" to be returned by the query behind the public rooms directory
* Adds the field `join_rule` to each room entry returned by a public rooms directory query, so clients can know whether to attempt a join or knock on a room

This PR is a clone of [the mainline PR](matrix-org/synapse#9359). Complement tests for this change: matrix-org/complement#72.
anoadragon453 added a commit to matrix-org/synapse that referenced this pull request Jun 9, 2021
This PR implements the ["Changes regarding the Public Rooms Directory"](https://github.com/Sorunome/matrix-doc/blob/soru/knock/proposals/2403-knock.md#changes-regarding-the-public-rooms-directory) section of knocking MSC2403.

Specifically, it:

* Allows rooms with `join_rule` "knock" to be returned by the query behind the public rooms directory
* Adds the field `join_rule` to each room entry returned by a public rooms directory query, so clients can know whether to attempt a join or knock on a room

Based on #6739. Complement tests for this change: matrix-org/complement#72
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.

2 participants