diff options
author | Eric Eastwood <erice@element.io> | 2022-11-28 15:54:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 15:54:18 -0600 |
commit | 8f10c8b054fc970838be9ae6f1f5aea95f166c98 (patch) | |
tree | d5c3d02ade03ddf5d0bd838b9f476c9c84432552 /synapse/federation/transport/client.py | |
parent | Use `device_one_time_keys_count` to match MSC3202 (#14565) (diff) | |
download | synapse-8f10c8b054fc970838be9ae6f1f5aea95f166c98.tar.xz |
Move MSC3030 `/timestamp_to_event` endpoint to stable v1 location (#14471)
Fix https://github.com/matrix-org/synapse/issues/14390 - Client API: `/_matrix/client/unstable/org.matrix.msc3030/rooms/<roomID>/timestamp_to_event?ts=<timestamp>&dir=<direction>` -> `/_matrix/client/v1/rooms/<roomID>/timestamp_to_event?ts=<timestamp>&dir=<direction>` - Federation API: `/_matrix/federation/unstable/org.matrix.msc3030/timestamp_to_event/<roomID>?ts=<timestamp>&dir=<direction>` -> `/_matrix/federation/v1/timestamp_to_event/<roomID>?ts=<timestamp>&dir=<direction>` Complement test changes: https://github.com/matrix-org/complement/pull/559
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r-- | synapse/federation/transport/client.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index a3cfc701cd..77f1f39cac 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -185,9 +185,8 @@ class TransportLayerClient: Raises: Various exceptions when the request fails """ - path = _create_path( - FEDERATION_UNSTABLE_PREFIX, - "/org.matrix.msc3030/timestamp_to_event/%s", + path = _create_v1_path( + "/timestamp_to_event/%s", room_id, ) |