Skip to content

MSC4001: Return start of room state at context endpoint#4001

Open
BramvdnHeuvel wants to merge 3 commits into
matrix-org:mainfrom
BramvdnHeuvel:context-state-at-start
Open

MSC4001: Return start of room state at context endpoint#4001
BramvdnHeuvel wants to merge 3 commits into
matrix-org:mainfrom
BramvdnHeuvel:context-state-at-start

Conversation

@BramvdnHeuvel

Copy link
Copy Markdown

No description provided.

@BramvdnHeuvel BramvdnHeuvel changed the title MSCxxxx Return start of room state at context endpoint MSC4001 Return start of room state at context endpoint Apr 21, 2023
@BramvdnHeuvel BramvdnHeuvel changed the title MSC4001 Return start of room state at context endpoint MSC4001: Return start of room state at context endpoint Apr 21, 2023
@BramvdnHeuvel
BramvdnHeuvel marked this pull request as ready for review April 21, 2023 15:58
@uhoreg uhoreg added proposal A matrix spec change proposal. Process state. A-Client Server Client-Server API kind:feature MSC for not-core and not-maintenance stuff needs-implementation This MSC does not have a qualifying implementation for the SCT to review. The MSC cannot enter FCP. labels Apr 21, 2023
Comment thread proposals/4001-context-state-at-start.md Outdated

## Proposal

For the same reason that this behaviour was altered for the `GET /_matrix/client/v3/sync` endpoint, the endpoint `GET /_matrix/client/v3/rooms/{roomId}/context/{eventId}` should use the `state` field in its 200 response to return the room state at the **first** event returned.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Under the assumption that this isn't a spec bug, this would be be an incompatible change and could break clients that rely on the current behaviour. This could be solved by adding a query parameter to indicate that the server should use this behaviour. Alternatively, the version number on this endpoint could be bumped. Or you could show that clients don't rely on the current behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Client Server Client-Server API kind:feature MSC for not-core and not-maintenance stuff needs-implementation This MSC does not have a qualifying implementation for the SCT to review. The MSC cannot enter FCP. proposal A matrix spec change proposal. Process state.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants