Clarify to not use timeline with state_after

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2025-08-06 11:24:12 +02:00
parent 802403edd9
commit bed1abaff5
No known key found for this signature in database
GPG key ID: F26F4BE20A08255B

View file

@ -259,9 +259,10 @@ paths:
{{% /boxes/note %}} {{% /boxes/note %}}
If this field is set, even if it is empty, clients MUST If this field is set, even if it is empty, clients MUST
only update their local state with events in this list. only update their local state with events in this list,
If this field is not set, clients MUST update their local and MUST NOT update their local state with events in
state with events in `state` and `timeline`. `timeline`. If this field is not set, clients MUST update
their local state with events in `state` and `timeline`.
**Required** if `use_state_after` was set to `true` in the **Required** if `use_state_after` was set to `true` in the
request, even if it is empty. request, even if it is empty.
@ -426,7 +427,8 @@ paths:
The state updates for the room up to the **end** of the timeline. The state updates for the room up to the **end** of the timeline.
If this field is set, even if it is empty, clients MUST only If this field is set, even if it is empty, clients MUST only
update their local state with events in this list. If this field update their local state with events in this list, and MUST NOT
update their local state with events in `timeline`. If this field
is not set, clients MUST update their local state with events in is not set, clients MUST update their local state with events in
`state` and `timeline`. `state` and `timeline`.