summary refs log tree commit diff
path: root/synapse/streams/config.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2022-10-07 12:38:46 -0400
committerGitHub <noreply@github.com>2022-10-07 12:38:46 -0400
commite03d7c5fd0577df5b62cd34559925c6cfe3e0360 (patch)
tree65076aab6bf16078e711f4e66b6219e0aec01ab6 /synapse/streams/config.py
parentApply & bundle edits for non-message events. (#14034) (diff)
downloadsynapse-e03d7c5fd0577df5b62cd34559925c6cfe3e0360.tar.xz
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.
Diffstat (limited to 'synapse/streams/config.py')
-rw-r--r--synapse/streams/config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/streams/config.py b/synapse/streams/config.py
index b52723e2b8..f6f7bf3d8b 100644
--- a/synapse/streams/config.py
+++ b/synapse/streams/config.py
@@ -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")