Clarify that stripped state in /sync response must include `m.room.member` event of user

And that event has the same format as in join rooms, with `event_id` and
`origin_server_ts`.

This has always been the case in homeserver implementations.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
pull/2181/head
Kévin Commaille 4 months ago
parent fb4a0d8f66
commit 506bc1a164
No known key found for this signature in database
GPG Key ID: F26F4BE20A08255B

@ -310,8 +310,14 @@ paths:
description: |- description: |-
The [stripped state events](/client-server-api/#stripped-state) that form the The [stripped state events](/client-server-api/#stripped-state) that form the
invite state. invite state.
MUST also include the `m.room.member` event of the user with a membership of
`invite`, and using the same event format as joined rooms with the `event_id`
and `origin_server_ts` fields.
items: items:
$ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml anyOf:
- $ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml
- $ref: definitions/client_event_without_room_id.yaml
type: array type: array
knock: knock:
title: Knocked rooms title: Knocked rooms
@ -335,8 +341,14 @@ paths:
description: |- description: |-
The [stripped state events](/client-server-api/#stripped-state) that form the The [stripped state events](/client-server-api/#stripped-state) that form the
knock state. knock state.
MUST also include the `m.room.member` event of the user with a membership of
`knock`, and using the same event format as joined rooms with the `event_id` and
`origin_server_ts` fields.
items: items:
$ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml anyOf:
- $ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml
- $ref: definitions/client_event_without_room_id.yaml
type: array type: array
leave: leave:
title: Left rooms title: Left rooms
@ -548,6 +560,8 @@ paths:
"sender": "@alice:example.com", "sender": "@alice:example.com",
"type": "m.room.member", "type": "m.room.member",
"state_key": "@bob:example.com", "state_key": "@bob:example.com",
"event_id": "$19dl9d3848dJLle:example.com",
"origin_server_ts": 1432735439654,
"content": { "content": {
"membership": "invite" "membership": "invite"
} }
@ -572,6 +586,8 @@ paths:
"sender": "@bob:example.com", "sender": "@bob:example.com",
"type": "m.room.member", "type": "m.room.member",
"state_key": "@bob:example.com", "state_key": "@bob:example.com",
"event_id": "$Fg83Kl3764di23a:example.com",
"origin_server_ts": 143273039402,
"content": { "content": {
"membership": "knock" "membership": "knock"
} }

Loading…
Cancel
Save