summary refs log tree commit diff
path: root/synapse/groups/attestations.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-07-17 16:49:19 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-07-18 14:45:55 +0100
commitf5a07e51f8374b6479c889da6bce34f3f099b9d8 (patch)
tree9d7a823b7cf8085f7e118e324748cdf36c17a6ef /synapse/groups/attestations.py
parentDisuse `room_stats.state_events` (relates to #5690) (diff)
downloadsynapse-f5a07e51f8374b6479c889da6bce34f3f099b9d8.tar.xz
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.
Diffstat (limited to 'synapse/groups/attestations.py')
0 files changed, 0 insertions, 0 deletions