forked-synapse/synapse/handlers
Eric Eastwood a6f1a3abec
Add MSC3030 experimental client and federation API endpoints to get the closest event to a given timestamp (#9445)
MSC3030: https://github.com/matrix-org/matrix-doc/pull/3030

Client API endpoint. This will also go and fetch from the federation API endpoint if unable to find an event locally or we found an extremity with possibly a closer event we don't know about.
```
GET /_matrix/client/unstable/org.matrix.msc3030/rooms/<roomID>/timestamp_to_event?ts=<timestamp>&dir=<direction>
{
    "event_id": ...
    "origin_server_ts": ...
}
```

Federation API endpoint:
```
GET /_matrix/federation/unstable/org.matrix.msc3030/timestamp_to_event/<roomID>?ts=<timestamp>&dir=<direction>
{
    "event_id": ...
    "origin_server_ts": ...
}
```

Co-authored-by: Erik Johnston <erik@matrix.org>
2021-12-02 01:02:20 -06:00
..
ui_auth Use direct references for configuration variables (part 7). (#10959) 2021-10-04 07:18:54 -04:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
account_data.py Add type hints for event streams. (#10856) 2021-09-21 13:34:26 -04:00
account_validity.py Require direct references to configuration variables. (#10985) 2021-10-06 10:47:41 -04:00
admin.py Add missing type hints to synapse.app. (#11287) 2021-11-10 15:06:54 -05:00
appservice.py Clarifications and small fixes to to-device related code (#11247) 2021-11-09 14:31:15 +00:00
auth.py Support expiry of refresh tokens and expiry of the overall session when refresh tokens are in use. (#11425) 2021-11-26 14:27:14 +00:00
cas.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
deactivate_account.py Revert change to counting of deactivated users towards the monthly active users limit (#11127) 2021-10-20 11:05:29 +01:00
device.py Improve docstrings for methods related to sending EDUs to application services (#11138) 2021-10-21 17:42:25 +01:00
devicemessage.py Clarifications and small fixes to to-device related code (#11247) 2021-11-09 14:31:15 +00:00
directory.py Test room alias deletion (#11327) 2021-11-12 19:56:00 +00:00
e2e_keys.py Include cross-signing signatures when syncing remote devices for the first time (#11234) 2021-11-09 11:45:36 +00:00
e2e_room_keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
event_auth.py Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
events.py Refactor the code to inject bundled relations during serialization. (#11408) 2021-11-23 06:43:56 -05:00
federation_event.py Remove redundant parameters on _check_event_auth (#11292) 2021-11-10 14:16:06 +00:00
federation.py Add MSC3030 experimental client and federation API endpoints to get the closest event to a given timestamp (#9445) 2021-12-02 01:02:20 -06:00
groups_local.py Require type hints in the handlers module. (#10831) 2021-09-20 08:56:23 -04:00
identity.py Remove legacy code related to deprecated trust_identity_server_for_password_resets config flag (#11333) 2021-11-18 10:56:32 -08:00
initial_sync.py Remove the deprecated BaseHandler. (#11005) 2021-10-08 07:44:43 -04:00
message.py Refactor the code to inject bundled relations during serialization. (#11408) 2021-11-23 06:43:56 -05:00
oidc.py Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
pagination.py Convert delete room admin API to async endpoint (#11223) 2021-11-12 12:35:31 +00:00
password_policy.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
presence.py Annotate log_function decorator (#10943) 2021-10-27 17:27:23 +01:00
profile.py Annotate log_function decorator (#10943) 2021-10-27 17:27:23 +01:00
read_marker.py Remove the deprecated BaseHandler. (#11005) 2021-10-08 07:44:43 -04:00
receipts.py Improve docstrings for methods related to sending EDUs to application services (#11138) 2021-10-21 17:42:25 +01:00
register.py Add type annotations to some of the configuration surrounding refresh tokens. (#11428) 2021-11-29 13:34:14 +00:00
room_batch.py Prevent historical state from being pushed to an application service via /transactions (MSC2716) (#11265) 2021-11-18 14:16:08 -06:00
room_list.py Remove the deprecated BaseHandler. (#11005) 2021-10-08 07:44:43 -04:00
room_member_worker.py Implement knock feature (#6739) 2021-06-09 19:39:51 +01:00
room_member.py Prevent historical state from being pushed to an application service via /transactions (MSC2716) (#11265) 2021-11-18 14:16:08 -06:00
room_summary.py Support the stable /hierarchy endpoint from MSC2946 (#11329) 2021-11-29 14:32:20 -05:00
room.py Add MSC3030 experimental client and federation API endpoints to get the closest event to a given timestamp (#9445) 2021-12-02 01:02:20 -06:00
saml.py Remove the deprecated BaseHandler. (#11005) 2021-10-08 07:44:43 -04:00
search.py Support filtering by relations per MSC3440 (#11236) 2021-11-09 08:10:58 -05:00
send_email.py Pass str to twisted's IReactorTCP (#10895) 2021-09-30 12:51:47 +01:00
set_password.py Remove the deprecated BaseHandler. (#11005) 2021-10-08 07:44:43 -04:00
sso.py Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
state_deltas.py Easy refactors of the user directory (#10789) 2021-09-10 10:54:38 +01:00
stats.py Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
sync.py Support filtering by relations per MSC3440 (#11236) 2021-11-09 08:10:58 -05:00
typing.py Add type annotations to synapse.metrics (#10847) 2021-11-17 19:07:02 +00:00
user_directory.py Fix adding excluded users to the private room sharing tables when joining a room (#11143) 2021-10-21 17:48:59 +01:00