-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
event properties in API responses and AS API duplicated as top-level field #7925
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
age
field in /messages duplicated as top-level field/messages
duplicated as top-level field
/messages
duplicated as top-level field/messages
response duplicated as top-level field
Thinking about this a bit harder: any client that wants to use these properties, and be compatible with |
For anyone thinking of looking at this: the code that does the copying is at https://github.com/matrix-org/synapse/blob/v1.43.0/synapse/events/utils.py#L255-L265. Note that that code also includes |
/messages
response duplicated as top-level field
ARGH. Of course that neglects application services, which don't need to |
I still think we should work to get rid of these spurious top-level keys, but it seems like there is potential for breakage. Accordingly it might be best for us to clarify the situation for |
MSC3442 clarified that It's still possible that some things - most likely ASes which don't need to worry about |
When calling the
/messages
endpoint (also/search
,/context
, etc) each event in thechunk
will have a number of top-level properties that duplicate those withinunsigned
:age
(see also:age
logic for events is broken #8429)redacted_because
replaces_state
invite_room_state
knock_room_state
.prev_content
(though this one was specced until MSC3442)user_id
(duplicatessender
)These top-level properties are not a part of the spec.
(Edited by @richvdh to make the list of affected properties clear)
The text was updated successfully, but these errors were encountered: