0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 03:43:51 +01:00

Fix regression where we did not return redacted events.

This commit is contained in:
Erik Johnston 2014-11-10 15:21:30 +00:00
parent b01159f234
commit cdc1b5d629

View file

@ -469,7 +469,7 @@ class SQLBaseStore(object):
select_event_sql = "SELECT * FROM events WHERE event_id = ?" 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( signatures = self._get_event_origin_signatures_txn(
txn, ev.event_id, txn, ev.event_id,
) )
@ -522,6 +522,7 @@ class SQLBaseStore(object):
if del_evs: if del_evs:
ev = prune_event(ev) ev = prune_event(ev)
events[i] = ev
ev.redacted_because = del_evs[0] ev.redacted_because = del_evs[0]
return events return events