mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 04:44:13 -04:00
Support the MSC3715 for /relations
. (#11941)
This adds an unstable org.matrix.msc3715.dir parameter which acts like dir on /mesages.
This commit is contained in:
parent
b65acead42
commit
4d7e74b2e5
3 changed files with 36 additions and 6 deletions
|
@ -111,6 +111,9 @@ class RelationPaginationServlet(RestServlet):
|
|||
raise SynapseError(404, "Unknown parent event.")
|
||||
|
||||
limit = parse_integer(request, "limit", default=5)
|
||||
direction = parse_string(
|
||||
request, "org.matrix.msc3715.dir", default="b", allowed_values=["f", "b"]
|
||||
)
|
||||
from_token_str = parse_string(request, "from")
|
||||
to_token_str = parse_string(request, "to")
|
||||
|
||||
|
@ -128,6 +131,7 @@ class RelationPaginationServlet(RestServlet):
|
|||
relation_type=relation_type,
|
||||
event_type=event_type,
|
||||
limit=limit,
|
||||
direction=direction,
|
||||
from_token=from_token,
|
||||
to_token=to_token,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue