diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-07-17 16:49:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-17 16:49:19 +0100 |
commit | 65c5592b8ed11e5ed4c3d6e29aa530d089c463ac (patch) | |
tree | 6e5d967940412c8451c749c3328dfc8549107fea /changelog.d/5623.feature | |
parent | Merge pull request #5597 from matrix-org/erikj/admin_api_cmd (diff) | |
download | synapse-65c5592b8ed11e5ed4c3d6e29aa530d089c463ac.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 'changelog.d/5623.feature')
0 files changed, 0 insertions, 0 deletions