Skip to content
Snippets Groups Projects
Commit 1d40373c authored by Erik Johnston's avatar Erik Johnston
Browse files

Include prev_content in redacted state events

parent 5202679e
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,8 @@ def prune_event(event):
if "age_ts" in event.unsigned:
allowed_fields["unsigned"]["age_ts"] = event.unsigned["age_ts"]
if "replaces_state" in event.unsigned:
allowed_fields["unsigned"]["replaces_state"] = event.unsigned["replaces_state"]
return type(event)(
allowed_fields,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment