-
-
Notifications
You must be signed in to change notification settings - Fork 120
Clarify that stripped state in /sync
response must include m.room.member
event of user
#2181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Clarify that the stripped state in `invite_state` and `knock_state` in `GET /sync` response must | ||
include the full `m.room.member` event of the user. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -310,8 +310,14 @@ paths: | |
description: |- | ||
The [stripped state events](/client-server-api/#stripped-state) that form the | ||
invite state. | ||
|
||
MUST also include the `m.room.member` event of the user with a membership of | ||
`invite`, and using the same event format as joined rooms with the `event_id` | ||
and `origin_server_ts` fields. | ||
items: | ||
$ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml | ||
anyOf: | ||
- $ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml | ||
- $ref: definitions/client_event_without_room_id.yaml | ||
type: array | ||
knock: | ||
title: Knocked rooms | ||
|
@@ -335,8 +341,14 @@ paths: | |
description: |- | ||
The [stripped state events](/client-server-api/#stripped-state) that form the | ||
knock state. | ||
|
||
MUST also include the `m.room.member` event of the user with a membership of | ||
`knock`, and using the same event format as joined rooms with the `event_id` and | ||
`origin_server_ts` fields. | ||
Comment on lines
+345
to
+347
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are knocks included in this, for consistency? Do servers do this currently? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, Synapse does the same, Dendrite doesn't support knocking it seems. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just checked, Conduit sends the knock event |
||
items: | ||
$ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml | ||
anyOf: | ||
- $ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml | ||
- $ref: definitions/client_event_without_room_id.yaml | ||
type: array | ||
leave: | ||
title: Left rooms | ||
|
@@ -548,6 +560,8 @@ paths: | |
"sender": "@alice:example.com", | ||
"type": "m.room.member", | ||
"state_key": "@bob:example.com", | ||
"event_id": "$19dl9d3848dJLle:example.com", | ||
"origin_server_ts": 1432735439654, | ||
"content": { | ||
"membership": "invite" | ||
} | ||
|
@@ -572,6 +586,8 @@ paths: | |
"sender": "@bob:example.com", | ||
"type": "m.room.member", | ||
"state_key": "@bob:example.com", | ||
"event_id": "$Fg83Kl3764di23a:example.com", | ||
"origin_server_ts": 143273039402, | ||
"content": { | ||
"membership": "knock" | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to change more words here. Something like:
Also we'll need to change the
description
on theInviteState
object.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we need to be more explicit about the difference between both of those, because the
m.room.member
should be a MUST, while the other events in the stripped state are a SHOULD.