diff --git a/data/api/server-server/knocks.yaml b/data/api/server-server/knocks.yaml index 01bfa637..f0cf69ad 100644 --- a/data/api/server-server/knocks.yaml +++ b/data/api/server-server/knocks.yaml @@ -294,9 +294,21 @@ paths: type: array items: $ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml + x-changedInMatrixVersion: + "1.16": | + `m.room.create` and format requirements were added. description: |- - A list of [stripped state events](/client-server-api/#stripped-state) - to help the initiator of the knock identify the room. + A list of state events to help the initiator of the knock identify + the room. Translated as [stripped state events](/client-server-api/#stripped-state) + over the Client-Server API. + + MUST contain the `m.room.create` event for the room. All events + listed MUST additionally be formatted according to the room + version specification. + + Entries which are [improperly signed](/server-server-api/#validating-hashes-and-signatures-on-received-events) + or formatted SHOULD be removed by the server prior to supplying + them over the Client-Server API. example: $ref: ../../event-schemas/examples/knock_room_state.json required: diff --git a/data/event-schemas/schema/m.room.member.yaml b/data/event-schemas/schema/m.room.member.yaml index 824d64d9..75510d51 100644 --- a/data/event-schemas/schema/m.room.member.yaml +++ b/data/event-schemas/schema/m.room.member.yaml @@ -154,11 +154,15 @@ properties: $ref: "core-event-schema/stripped_state.yaml" type: array knock_room_state: + x-changedInMatrixVersion: + "1.16": | + `m.room.create` was made a required event type for stripped state. description: |- A subset of the state of the room at the time of the knock, if `membership` is `knock`. This has the same restrictions as `invite_room_state`. If they are set on the room, at least the state for `m.room.avatar`, `m.room.canonical_alias`, `m.room.join_rules`, `m.room.name`, - and `m.room.encryption` SHOULD be included. + and `m.room.encryption` SHOULD be included. The `m.room.create` event MUST be included, + though MAY be missing if the server hasn't updated to support the Matrix 1.16 specification. items: $ref: "core-event-schema/stripped_state.yaml" type: array