Fix prev_content

This commit is contained in:
Erik Johnston 2014-12-11 15:16:55 +00:00
parent e72b16f9a3
commit 9191292b0f
3 changed files with 16 additions and 3 deletions

View file

@ -487,6 +487,12 @@ class SQLBaseStore(object):
if because:
ev.unsigned["redacted_because"] = because
if "replaces_state" in ev.unsigned:
ev.unsigned["prev_content"] = self._get_event_txn(
txn,
ev.unsigned["replaces_state"],
).get_dict()["content"]
return ev
def _parse_events(self, rows):