diff options
author | Erik Johnston <erik@matrix.org> | 2014-11-10 15:21:30 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-11-10 15:21:30 +0000 |
commit | cdc1b5d629b49300de848647bd2a80a024fae8f7 (patch) | |
tree | f95950a28632ff7666dd501eb957c05b95db83e8 /synapse/storage | |
parent | Fix room handler test (diff) | |
download | synapse-cdc1b5d629b49300de848647bd2a80a024fae8f7.tar.xz |
Fix regression where we did not return redacted events.
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/_base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index a23f2b941b..2df64bdfeb 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -469,7 +469,7 @@ class SQLBaseStore(object): select_event_sql = "SELECT * FROM events WHERE event_id = ?" - for ev in events: + for i, ev in enumerate(events): signatures = self._get_event_origin_signatures_txn( txn, ev.event_id, ) @@ -522,6 +522,7 @@ class SQLBaseStore(object): if del_evs: ev = prune_event(ev) + events[i] = ev ev.redacted_because = del_evs[0] return events |