-
Notifications
You must be signed in to change notification settings - Fork 411
MSC4366: Resident servers in and around the room directory #4366
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
base: main
Are you sure you want to change the base?
Conversation
ef6d5d8
to
49592a2
Compare
49592a2
to
dfcd8b9
Compare
Signed-off-by: Johannes Marbach <[email protected]>
dfcd8b9
to
c06b704
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation requirements:
- Client
- Server
- [`POST /_matrix/federation/v1/publicRooms`] | ||
|
||
MUST only include rooms from the server's local directory if the server has at least one joined | ||
member in them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it will completely forbid directory-only servers like https://matrixrooms.info/
I think it'd be better to define a via
field in the response entries instead of this proposal. Basically, let the origin server figure out if it can find a route rather than mandating a single allowed route in the spec. The spec could still mandate that via
s must be returned
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was struggling with how to best express this but I had intended it to only apply to rooms from the local directory, meaning the server MAY continue to additionally include rooms from other server's directories like today. That only half-solves the problem of course, as stated under potential issues.
Maybe we should combine both? For any room in the response the server must either be resident or include a via
value in the response?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For any room in the response the server must either be resident or include a
via
value in the response?
Is that any different than just requiring all entries include a via
value, which may simply be the server itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess not. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have captured this in #4367.
Signed-off-by: Johannes Marbach <[email protected]>
Rendererd
Fixes: matrix-org/matrix-spec#1375