diff --git a/synapse/events/utils.py b/synapse/events/utils.py index aab18d7f71c99950a77a299512ac0a7e20162242..0e9fd902af69d8d1ddf3d932c5540b78b3481bf9 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,