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 current text on this reads:
This is misleading at best, as it implies it should return the auth chains for the full state of the room. Rather, it returns the auth chain for the event specified in the request: this is a much smaller set of data. (Consider a large room with many members: as worded, we should return the auth chain for every single
m.room.member
event in the state; in practice, Synapse only returns the auth chain for the requested event.)For reference, the Synapse implementation of this method can be seen at https://github.com/matrix-org/synapse/blob/v1.49.2/synapse/handlers/federation.py#L420-L425 (which calls
get_auth_chain
). The code has been optimised over the years, but in principle it has changed little since Synapse 0.6.0 (https://github.com/matrix-org/synapse/blob/v0.6.0/synapse/handlers/federation.py#L291-L304, https://github.com/matrix-org/synapse/blob/v0.6.0/synapse/storage/event_federation.py#L35-L71).This text was introduced into the spec in matrix-doc#1475, so correction does not require an MSC - it's simply a bug in the spec.
Preview: https://pr3583--matrix-org-previews.netlify.app