mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 19:40:20 +00:00
Merge pull request #1003 from matrix-org/erikj/redaction_prev_content
Include prev_content in redacted state events
This commit is contained in:
commit
c9c1541fd0
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue