Skip to content

Commit a91030f

Browse files
authored
Re-add paragraph about how some state keys are reserved (#1100)
* Re-add paragraph about how some state keys are reserved Fixes #1013 * changelog
1 parent 515269b commit a91030f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify that state keys starting with `@` are in fact reserved. Regressed from [#3658](https://github.com/matrix-org/matrix-spec-proposals/pull/3658).

data/api/client-server/definitions/client_event_without_room_id.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ properties:
3838
Present if, and only if, this event is a *state* event. The key making
3939
this piece of state unique in the room. Note that it is often an empty
4040
string.
41+
42+
State keys starting with an `@` are reserved for referencing user IDs, such
43+
as room members. With the exception of a few events, state events set with a
44+
given user's ID as the state key MUST only be set by that user.
4145
type: string
4246
example: '@user:example.org'
4347
sender:

0 commit comments

Comments
 (0)