Skip to content

Commit

Permalink
Re-add paragraph about how some state keys are reserved (#1100)
Browse files Browse the repository at this point in the history
* Re-add paragraph about how some state keys are reserved

Fixes #1013

* changelog
  • Loading branch information
turt2live committed May 31, 2022
1 parent 515269b commit a91030f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1100.clarification
Original file line number Diff line number Diff line change
@@ -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).
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ properties:
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
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
example: '@user:example.org'
sender:
Expand Down

0 comments on commit a91030f

Please sign in to comment.