Re-add paragraph about how some state keys are reserved (#1100)
* Re-add paragraph about how some state keys are reserved Fixes https://github.com/matrix-org/matrix-spec/issues/1013 * changelog
This commit is contained in:
parent
515269b2e3
commit
a91030f27b
2 changed files with 5 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
Clarify that state keys starting with `@` are in fact reserved. Regressed from [#3658](https://github.com/matrix-org/matrix-spec-proposals/pull/3658).
|
|
@ -38,6 +38,10 @@ properties:
|
||||||
Present if, and only if, this event is a *state* event. The key making
|
Present if, and only if, this event is a *state* event. The key making
|
||||||
this piece of state unique in the room. Note that it is often an empty
|
this piece of state unique in the room. Note that it is often an empty
|
||||||
string.
|
string.
|
||||||
|
|
||||||
|
State keys starting with an `@` are reserved for referencing user IDs, such
|
||||||
|
as room members. With the exception of a few events, state events set with a
|
||||||
|
given user's ID as the state key MUST only be set by that user.
|
||||||
type: string
|
type: string
|
||||||
example: '@user:example.org'
|
example: '@user:example.org'
|
||||||
sender:
|
sender:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue