From 1d40373c9d68bd948a9829283dc16903d462ae62 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 11 Aug 2016 10:24:41 +0100 Subject: Include prev_content in redacted state events --- synapse/events/utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'synapse') diff --git a/synapse/events/utils.py b/synapse/events/utils.py index aab18d7f71..0e9fd902af 100644 --- a/synapse/events/utils.py +++ b/synapse/events/utils.py @@ -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, -- cgit 1.4.1