forked-synapse/synapse
Richard van der Hoff 65c5592b8e
Refactor get_events_as_list (#5699)
A couple of changes here:

* get rid of a redundant `allow_rejected` condition - we should already have filtered out any rejected
  events before we get to that point in the code, and the redundancy is confusing. Instead, let's stick in
  an assertion just to make double-sure we aren't leaking rejected events by mistake.

* factor out a `_get_events_from_cache_or_db` method, which is going to be important for a 
  forthcoming fix to redactions.
2019-07-17 16:49:19 +01:00
..
_scripts Run Black. (#5482) 2019-06-20 19:32:02 +10:00
api Return a different error from Invalid Password when a user is deactivated (#5674) 2019-07-15 11:45:29 +01:00
app Remove pointless description 2019-07-16 11:45:57 +01:00
appservice Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
config Clean up arg name and remove lying comment 2019-07-16 11:39:40 +01:00
crypto Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
events Add origin_server_ts and sender fields to m.replace (#5613) 2019-07-05 17:20:02 +01:00
federation Add basic opentracing support (#5544) 2019-07-11 10:36:03 +01:00
groups Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
handlers Return a different error from Invalid Password when a user is deactivated (#5674) 2019-07-15 11:45:29 +01:00
http Add basic opentracing support (#5544) 2019-07-11 10:36:03 +01:00
logging Add basic opentracing support (#5544) 2019-07-11 10:36:03 +01:00
metrics Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
module_api Remove access-token support from RegistrationHandler.register (#5641) 2019-07-08 19:01:08 +01:00
push Add default push rule to ignore reactions (#5623) 2019-07-05 17:37:52 +01:00
replication Remove access-token support from RegistrationHandler.register (#5641) 2019-07-08 19:01:08 +01:00
res/templates Change password reset links to /_matrix. 2019-06-11 11:34:33 +01:00
rest fix typo: backgroud -> background 2019-07-12 15:29:40 +01:00
server_notices Run Black. (#5482) 2019-06-20 19:32:02 +10:00
state Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
static Revert redundant changes to static js 2019-06-26 22:46:23 +01:00
storage Refactor get_events_as_list (#5699) 2019-07-17 16:49:19 +01:00
streams Fix /messages on workers when no from param specified. 2019-06-24 10:06:51 +01:00
util Fixes to the federation rate limiter (#5621) 2019-07-05 11:10:19 +01:00
__init__.py 1.1.0 2019-07-04 11:44:09 +01:00
event_auth.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
notifier.py Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
python_dependencies.py Add basic opentracing support (#5544) 2019-07-11 10:36:03 +01:00
secrets.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
server.py cleanups 2019-06-27 00:37:41 +01:00
server.pyi Run Black. (#5482) 2019-06-20 19:32:02 +10:00
types.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
visibility.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00