Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The example for the
/sync
endpoint had several problems:state
and in thetimeline
so we cannot use the same event twice. To provide astate
example we assume that with lazy-loading the user did not get the state event for@example:example.org
, so we add one since they sent a message in the timeline. Fixes /sync example shows alice joining in both state & timeline #563.room_id
, which doesn't appear on this endpoint, so we copy them without it. Fixes Example for/sync
response incorrectly includesroom_id
in state and timeline events #789.join
event of@alice:example.org
is wrong because the sender does not match the state key, which wouldn't pass the authorization rules. We don't use a reference to it anymore, but we still fix the original, which fixes a few other places. Fixes GET /_matrix/client/r0/rooms/{roomId}/members example contradicts the spec #698.Pull Request Checklist
Preview: https://pr2077--matrix-spec-previews.netlify.app