You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| state_key | string |**Required.** A unique key which defines the overwriting semantics for this piece of room state. This value is often a zero-length string. The presence of this key makes this event a State Event. 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. |
1401
1401
1402
+
### Stripped state
1403
+
1404
+
Stripped state events are simplified state events to help a potential
1405
+
joiner identify the room. These state events may only have the `sender`,
1406
+
`type`, `state_key` and `content` keys present.
1407
+
1408
+
These stripped state events typically appear on invites, knocks, and in
1409
+
other places where a user *could* join the room under the conditions
1410
+
available (such as a [`restricted` room](#restricted-rooms)).
1411
+
1412
+
Clients should only use stripped state events so long as they don't have
1413
+
access to the proper state of the room. Once the state of the room is
1414
+
available, all stripped state should be discarded. In cases where the
1415
+
client has an archived state of the room (such as after being kicked)
1416
+
and the client is receiving stripped state for the room, such as from an
1417
+
invite or knock, then the stripped state should take precedence until
1418
+
fresh state can be acquired from a join.
1419
+
1420
+
The following state events should be represented as stripped state when
Copy file name to clipboardExpand all lines: data/event-schemas/schema/m.room.member.yaml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,8 @@ description: |-
19
19
The `third_party_invite` property will be set if this invite is an `invite` event and is the successor of an `m.room.third_party_invite` event, and absent otherwise.
20
20
21
21
This event may also include an `invite_room_state` key inside the event's `unsigned` data.
22
-
If present, this contains an array of `StrippedState` Events. These events provide information
23
-
on a subset of state events such as the room name.
22
+
If present, this contains an array of [stripped state events](/client-server-api/#stripped-state)
23
+
to assist the receiver in identifying the room.
24
24
25
25
The user for which a membership applies is represented by the `state_key`. Under some conditions,
26
26
the `sender` and `state_key` may not match - this may be interpreted as the `sender` affecting
@@ -136,7 +136,7 @@ properties:
136
136
state for `m.room.avatar`, `m.room.canonical_alias`, `m.room.join_rules`, and `m.room.name`
137
137
SHOULD be included.
138
138
items:
139
-
$ref: "stripped_state.yaml"
139
+
$ref: "core-event-schema/stripped_state.yaml"
140
140
type: array
141
141
knock_room_state:
142
142
description: |-
@@ -145,7 +145,7 @@ properties:
145
145
the state for `m.room.avatar`, `m.room.canonical_alias`, `m.room.join_rules`, `m.room.name`,
146
146
and `m.room.encryption` SHOULD be included.
147
147
items:
148
-
$ref: "stripped_state.yaml"
148
+
$ref: "core-event-schema/stripped_state.yaml"
149
149
type: array
150
150
title: The current membership state of a user in the room.
0 commit comments