-
Notifications
You must be signed in to change notification settings - Fork 379
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
prev_content
is returned at the top-level by most of the CS API
#877
Comments
all the examples seem to show prev_content for state events being returned as a top level field on the event. but in practice synapse seems to return it most but not all of the time in unsigned. this is incredibly confusing |
basically a subset of #684 |
Just to clarify: is |
there's a lot of discussion about this on #2648. In short: the spec says it should be in the top-level, so clients and servers have to respect that. It's a shame that it says that, making this a protocol wart. (As opposed to a spec bug, which is where the spec lies about the protocol.) |
prev_content
is returned at the top-level by most of the CS API
prev_content
is returned at the top-level by most of the CS APIprev_content
(and other keys) are returned at the top-level by most of the CS API
prev_content
(and other keys) are returned at the top-level by most of the CS APIprev_content
is returned at the top-level by most of the CS API
Oh man, this is a whole lot worse than I thought it was. It's correct that Synapse has a However, my understanding of what it does for For most of the above, I can find no mention in the spec of those keys outside an Sooo... We should consider the two cases separately.
|
I'm actually going to reopen this, to track it being clarified in the spec. |
The spec is unclear about where
prev_content
should be returned. Most parts imply it should be at the top level of any events, but there are also parts that show it being returned underunsigned
.In practice, Synapse returns it in both places, except for the following APIs, where it is only returned under
unsigned
./_matrix/client/r0/sync
/_matrix/client/r0/notifications
/_matrix/client/r0/rooms/{room_id}/state/{type}/{key}
when called with the unspecified(!)format=event
parameter.The text was updated successfully, but these errors were encountered: