Clarify which events will be included in Stripped State (#1409)
Signed-off-by: Andy Balaam andy.balaam@matrix.org
This commit is contained in:
parent
6b02e39308
commit
b5566dbadb
2 changed files with 13 additions and 9 deletions
|
@ -0,0 +1 @@
|
||||||
|
Clarify which events will be included in Stripped State. Contributed by @andybalaam.
|
|
@ -1579,15 +1579,18 @@ detail on why this assumption is unsafe.
|
||||||
|
|
||||||
### Stripped state
|
### Stripped state
|
||||||
|
|
||||||
Stripped state events are simplified state events to help a potential
|
Stripped state is a simplified view of the state of a room intended to help a
|
||||||
joiner identify the room. These state events can only have the `sender`,
|
potential joiner identify the room. It consists of a limited set of state events
|
||||||
`type`, `state_key` and `content` keys present.
|
that are themselves simplified to reduce the amount of data required.
|
||||||
|
|
||||||
These stripped state events typically appear on invites, knocks, and in
|
Stripped state events can only have the `sender`, `type`, `state_key` and
|
||||||
other places where a user *could* join the room under the conditions
|
`content` properties present.
|
||||||
available (such as a [`restricted` room](#restricted-rooms)).
|
|
||||||
|
|
||||||
Clients should only use stripped state events so long as they don't have
|
Stripped state typically appears in invites, knocks, and in other places where a
|
||||||
|
user *could* join the room under the conditions available (such as a
|
||||||
|
[`restricted` room](#restricted-rooms)).
|
||||||
|
|
||||||
|
Clients should only use stripped state events when they don't have
|
||||||
access to the proper state of the room. Once the state of the room is
|
access to the proper state of the room. Once the state of the room is
|
||||||
available, all stripped state should be discarded. In cases where the
|
available, all stripped state should be discarded. In cases where the
|
||||||
client has an archived state of the room (such as after being kicked)
|
client has an archived state of the room (such as after being kicked)
|
||||||
|
@ -1595,8 +1598,8 @@ and the client is receiving stripped state for the room, such as from an
|
||||||
invite or knock, then the stripped state should take precedence until
|
invite or knock, then the stripped state should take precedence until
|
||||||
fresh state can be acquired from a join.
|
fresh state can be acquired from a join.
|
||||||
|
|
||||||
The following state events should be represented as stripped state when
|
Stripped state should contain some or all of the following state events, which
|
||||||
possible:
|
should be represented as stripped state events when possible:
|
||||||
|
|
||||||
* [`m.room.create`](#mroomcreate)
|
* [`m.room.create`](#mroomcreate)
|
||||||
* [`m.room.name`](#mroomname)
|
* [`m.room.name`](#mroomname)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue