forked-synapse/synapse/handlers
Brendan Abolivier 855af069a4
Fix instantiation of message retention purge jobs
When figuring out which topological token to start a purge job at, we
need to do the following:

1. Figure out a timestamp before which events will be purged
2. Select the first stream ordering after that timestamp
3. Select info about the first event after that stream ordering
4. Build a topological token from that info

In some situations (e.g. quiet rooms with a short max_lifetime), there
might not be an event after the stream ordering at step 3, therefore we
abort the purge with the error `No event found`. To mitigate that, this
patch fetches the first event _before_ the stream ordering, instead of
after.
2020-01-15 18:56:18 +00:00
..
ui_auth Support for routing outbound HTTP requests via a proxy (#6239) 2019-11-01 14:07:44 +00:00
__init__.py Fix registration on workers (#4682) 2019-02-20 18:47:31 +11:00
_base.py Change EventContext to use the Storage class (#6564) 2019-12-20 10:32:02 +00:00
account_data.py Remove unused get_pagination_rows methods. (#6557) 2019-12-17 11:44:32 +00:00
account_validity.py Port handlers.account_validity to async/await. 2019-12-10 14:40:15 +00:00
acme_issuing_service.py Allow configuration of the path used for ACME account keys. 2019-06-24 13:51:22 +01:00
acme.py Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00
admin.py Allow admin users to create or modify users without a shared secret (#6495) 2020-01-09 13:31:00 +00:00
appservice.py Update black to 19.10b0 (#6304) 2019-11-01 02:43:24 +11:00
auth.py Merge pull request #6335 from matrix-org/erikj/rc_login_cleanups 2019-11-20 09:52:38 +00:00
deactivate_account.py Port some admin handlers to async/await (#6559) 2019-12-19 15:07:28 +00:00
device.py Merge branch 'develop' into cross-signing_federation 2019-10-31 22:38:21 -04:00
devicemessage.py Remove usage of deprecated logger.warn method from codebase (#6271) 2019-10-31 10:23:24 +00:00
directory.py Clean up newline quote marks around the codebase (#6362) 2019-11-21 12:00:14 +00:00
e2e_keys.py look up cross-signing keys from the DB in bulk (#6486) 2019-12-12 12:03:28 -05:00
e2e_room_keys.py add etag and count to key backup endpoints (#5858) 2019-11-27 16:14:44 -05:00
events.py Port SyncHandler to async/await 2019-12-05 17:58:25 +00:00
federation.py Fix conditions failing if min_depth = 0 2020-01-07 12:08:58 +00:00
groups_local.py Correctly proxy remote group HTTP errors. (#6654) 2020-01-07 15:36:41 +00:00
identity.py Remove usage of deprecated logger.warn method from codebase (#6271) 2019-10-31 10:23:24 +00:00
initial_sync.py Port synapse.handlers.initial_sync to async/await 2019-12-09 13:46:45 +00:00
message.py Remove unused hashes and depths from create_event params 2020-01-06 13:45:33 +00:00
pagination.py Fix instantiation of message retention purge jobs 2020-01-15 18:56:18 +00:00
presence.py Fix an error which was thrown by the PresenceHandler _on_shutdown handler. (#6640) 2020-01-06 14:34:02 +00:00
profile.py Add option to allow profile queries without sharing a room (#6523) 2019-12-16 16:11:55 +00:00
read_marker.py Port receipt and read markers to async/wait 2019-10-29 15:08:22 +00:00
receipts.py Port receipt and read markers to async/wait 2019-10-29 15:08:22 +00:00
register.py Kill off RegistrationError (#6691) 2020-01-13 12:48:22 +00:00
room_list.py Remove unused public room list timeout param (#6179) 2019-10-08 13:51:25 +01:00
room_member_worker.py Propagate reason in remotely rejected invites 2019-11-28 11:31:56 +00:00
room_member.py Merge pull request #6629 from matrix-org/rav/kill_event_reference_hashes 2020-01-06 17:46:31 +00:00
room.py Fix some test failures when frozen_dicts are enabled (#6642) 2020-01-06 15:22:46 +00:00
saml_handler.py Pass client redirect URL into SAML mapping providers 2020-01-12 21:40:49 +00:00
search.py Prevent message search in upgraded rooms we're not in (#6385) 2019-12-11 13:07:25 +00:00
set_password.py Added possibilty to disable local password authentication (#5092) 2019-06-27 18:37:29 +01:00
state_deltas.py Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00
stats.py Update black to 19.10b0 (#6304) 2019-11-01 02:43:24 +11:00
sync.py Fixup functions to consistently return deferreds 2019-12-06 10:40:05 +00:00
typing.py Remove unused get_pagination_rows methods. (#6557) 2019-12-17 11:44:32 +00:00
user_directory.py Fix races in room stats (and other) updates. (#6187) 2019-10-10 11:29:01 +01:00