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/5699.bugfix | |
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/5699.bugfix')
-rw-r--r-- | changelog.d/5699.bugfix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/5699.bugfix b/changelog.d/5699.bugfix new file mode 100644 index 0000000000..30d5e67f67 --- /dev/null +++ b/changelog.d/5699.bugfix @@ -0,0 +1 @@ +Fix some problems with authenticating redactions in recent room versions. \ No newline at end of file |