Search/context endpoint doesn't mention a user_id
#1217
Labels
clarification
An area where the expected behaviour is understood, but the spec could do with being more explicit
Link to problem area:
https://spec.matrix.org/v1.3/client-server-api/#post_matrixclientv3search
https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv3roomsroomidcontexteventid
Issue
Question came up in matrix-org/sytest#1281
The
/search
endpoint doesn't specify auser_id
in any of the response objects, yet Sytest is checking for the existence of this field.I couldn't find
user_id
in any older spec version, so the question is what's the correct behavior. Do we needuser_id
(as currently returned by Synapse insearch_categories.room_events.results[]
andsearch_categories.room_events.results[].context.events_before[]
(andevents_after
), or don't we need it?Same question for
/context
returned values - Synapse returns auser_id
in ClientEvent, while the spec doesn't mention it.The text was updated successfully, but these errors were encountered: