mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-30 14:14:09 +02:00
Part 2: Knocks
This commit is contained in:
parent
a07f2d0f23
commit
1692d22a8c
|
|
@ -294,9 +294,21 @@ paths:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml
|
$ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml
|
||||||
|
x-changedInMatrixVersion:
|
||||||
|
"1.16": |
|
||||||
|
`m.room.create` and format requirements were added.
|
||||||
description: |-
|
description: |-
|
||||||
A list of [stripped state events](/client-server-api/#stripped-state)
|
A list of state events to help the initiator of the knock identify
|
||||||
to help the initiator of the knock identify the room.
|
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:
|
example:
|
||||||
$ref: ../../event-schemas/examples/knock_room_state.json
|
$ref: ../../event-schemas/examples/knock_room_state.json
|
||||||
required:
|
required:
|
||||||
|
|
|
||||||
|
|
@ -154,11 +154,15 @@ properties:
|
||||||
$ref: "core-event-schema/stripped_state.yaml"
|
$ref: "core-event-schema/stripped_state.yaml"
|
||||||
type: array
|
type: array
|
||||||
knock_room_state:
|
knock_room_state:
|
||||||
|
x-changedInMatrixVersion:
|
||||||
|
"1.16": |
|
||||||
|
`m.room.create` was made a required event type for stripped state.
|
||||||
description: |-
|
description: |-
|
||||||
A subset of the state of the room at the time of the knock, if `membership` is `knock`.
|
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
|
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`,
|
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:
|
items:
|
||||||
$ref: "core-event-schema/stripped_state.yaml"
|
$ref: "core-event-schema/stripped_state.yaml"
|
||||||
type: array
|
type: array
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue