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

@ -113,6 +113,14 @@ def serialize_event(hs, e):
d["redacted_by"] = e.unsigned["redacted_by"]
del d["unsigned"]["redacted_by"]
if "replaces_state" in e.unsigned:
d["replaces_state"] = e.unsigned["replaces_state"]
del d["unsigned"]["replaces_state"]
if "prev_content" in e.unsigned:
d["prev_content"] = e.unsigned["prev_content"]
del d["unsigned"]["prev_content"]
del d["auth_events"]
del d["prev_events"]
del d["hashes"]