From d6d5eddc2d400f32a6deac0a9a53065df682be9e Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 24 Sep 2025 14:19:13 +0100 Subject: [PATCH] Make RequiredStateRequest.include optional --- proposals/4186-simplified-sliding-sync.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proposals/4186-simplified-sliding-sync.md b/proposals/4186-simplified-sliding-sync.md index eb5cf3532..5f45a484f 100644 --- a/proposals/4186-simplified-sliding-sync.md +++ b/proposals/4186-simplified-sliding-sync.md @@ -242,7 +242,7 @@ The endpoint is a `POST` request with a JSON body to `/_matrix/client/unstable/o | Name | Type | Required | Comment | | - | - | - | - | | `timeline_limit` | `int` | Yes | The maximum number of timeline events to return per response. The server may cap this number. | -| `required_state` | [RequiredStateRequest] | Yes | Required state for each room returned. | +| `required_state` | `RequiredStateRequest` | Yes | Required state for each room returned. | | `ranges` | `[[int, int]]` | No | Sliding window ranges. If this field is missing, no sliding window is used and all rooms are returned in this list. Integers are *inclusive*, and are 0-indexed. (This is a list of 2-tuples.) | | `filters` | `SlidingRoomFilter` | No | Filters to apply to the list before sorting. | @@ -251,7 +251,7 @@ The endpoint is a `POST` request with a JSON body to `/_matrix/client/unstable/o | Name | Type | Required | Comment | | - | - | - | - | | `timeline_limit` | `int` | Yes | Same as in `SyncListConfig` | -| `required_state` | [RequiredStateRequest] | Yes | Same as in `SyncListConfig` | +| `required_state` | `RequiredStateRequest` | Yes | Same as in `SyncListConfig` | ### `RequiredStateRequest` @@ -259,7 +259,7 @@ Describes the set of state that the server should return for the room. | Name | Type | Required | Comment | | - | - | - | - | -| `include` | `[RequiredStateElement]` | Yes | The set of state to return (unless filtered out by `exclude`). | +| `include` | `[RequiredStateElement]` | No | The set of state to return (unless filtered out by `exclude`), if any. | | `exclude` | `[RequiredStateElement]` | No | The set of state to filter out before returning, if any. | | `lazy_members` | `bool` | No | Whether to enable lazy loaded membership behaviour. Defaults to false. |