mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 14:45:01 -04:00
Remove support for the unstable dir flag on relations. (#14106)
From MSC3715, this was unused by clients (and there was no way for clients to know it was supported). Matrix 1.4 defines the stable field.
This commit is contained in:
parent
ab8047b4bf
commit
e03d7c5fd0
5 changed files with 31 additions and 57 deletions
|
@ -42,10 +42,12 @@ class PaginationConfig:
|
|||
cls,
|
||||
store: "DataStore",
|
||||
request: SynapseRequest,
|
||||
raise_invalid_params: bool = True,
|
||||
default_limit: Optional[int] = None,
|
||||
default_dir: str = "f",
|
||||
) -> "PaginationConfig":
|
||||
direction = parse_string(request, "dir", default="f", allowed_values=["f", "b"])
|
||||
direction = parse_string(
|
||||
request, "dir", default=default_dir, allowed_values=["f", "b"]
|
||||
)
|
||||
|
||||
from_tok_str = parse_string(request, "from")
|
||||
to_tok_str = parse_string(request, "to")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue