diff --git a/synapse/handlers/sliding_sync_handler.py b/synapse/handlers/sliding_sync_handler.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/synapse/rest/client/sync.py b/synapse/rest/client/sync.py index 940ceb19d8..e9ab1f13f9 100644 --- a/synapse/rest/client/sync.py +++ b/synapse/rest/client/sync.py @@ -829,9 +829,9 @@ class SlidingSyncBody(RequestBodyModel): lists: Optional[List[StrictStr]] rooms: Optional[List[StrictStr]] - lists: Dict[constr(max_length=64, strict=True), SlidingSyncList] - room_subscriptions: Dict[StrictStr, RoomSubscription] - extensions: Dict[StrictStr, Extension] + lists: Optional[Dict[constr(max_length=64, strict=True), SlidingSyncList]] + room_subscriptions: Optional[Dict[StrictStr, RoomSubscription]] + extensions: Optional[Dict[StrictStr, Extension]] @validator("lists") def lists_length_check(cls, v):