Bundle some state into invites
This commit is contained in:
parent
ca9f30a7fd
commit
d7d9f406a6
2 changed files with 24 additions and 0 deletions
|
@ -267,6 +267,11 @@ paths:
|
|||
type: string
|
||||
description: "The user's membership state in this room."
|
||||
enum: ["invite", "join", "leave", "ban"]
|
||||
invite:
|
||||
type: object
|
||||
description: "The invite event if `membership` is `invite`"
|
||||
allOf:
|
||||
- "$ref": "room.room.member"
|
||||
messages:
|
||||
type: object
|
||||
title: PaginationChunk
|
||||
|
|
|
@ -32,6 +32,25 @@
|
|||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["m.room.member"]
|
||||
},
|
||||
"invite_room_state": {
|
||||
"type": "array",
|
||||
"description": "A subset of the state of the room at the time of the invite, if ``membership`` is ``invite``",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"title": "StateEvent",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"state_key": {
|
||||
"type": "string"
|
||||
},
|
||||
"content": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue