matrix-org / matrix-org/matrix-spec

spaces: Is `{"via":[]}` considered valid?

Open
#2,118 0 comments 0 reactions 0 assignees View on GitHub
clarification
Dominant language
HTML
Stars
330
Forks
150
Avg merge
2h 21m
Merged PRs (30d)
3

Description

**Link to problem area**:
https://spec.matrix.org/v1.14/client-server-api/#mspacechild
https://spec.matrix.org/v1.14/client-server-api/#mspaceparent

**Issue**
The spec currently specifies "When not present or invalid, the child room is not considered to be part of the space.".

This does not specify whether a content of `{"via":[]}` is invalid since it is technically a list of servers but still not routable.

Element-web interprets it as valid while synapse seems to interpret it as invalid. (see element-hq/element-web#29606)

Contributor guide

Open the contributing guide

Research direction

Read the m.space.child and m.space.parent sections of the Matrix Client-Server API specification, then compare the differing interpretations noted for Element Web and Synapse, including element-hq/element-web#29606. Done means the specification explicitly defines whether {"via":[]} is valid or invalid and removes the ambiguity for implementations.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.