diff options
author | Travis Ralston <travisr@matrix.org> | 2023-07-19 15:48:32 -0600 |
---|---|---|
committer | Travis Ralston <travisr@matrix.org> | 2023-07-19 15:48:32 -0600 |
commit | 1e77a62c1d011d51a722443ffedeeca3cfb8d440 (patch) | |
tree | eb3e684ae3dc30d10932c8fbd3879baa97f53cab /synapse/events | |
parent | Add note (diff) | |
download | synapse-1e77a62c1d011d51a722443ffedeeca3cfb8d440.tar.xz |
Fix(?) MSC2176 implementation
Pending resolution of https://matrix.to/#/!NasysSDfxKxZBzJJoE:matrix.org/$yCZra9xATiCfKehho6N52m_22ag9TD_tMoqX3GXEwL0?via=matrix.org&via=libera.chat&via=element.io
Diffstat (limited to '')
-rw-r--r-- | synapse/events/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py index ff172d66b4..a558d915aa 100644 --- a/synapse/events/utils.py +++ b/synapse/events/utils.py @@ -145,9 +145,9 @@ def prune_event_dict(room_version: RoomVersion, event_dict: JsonDict) -> JsonDic ] elif event_type == EventTypes.Create: - # MSC2176 rules state that create events cannot be redacted. + # MSC2176 rules state that create events cannot have their `content` redacted. if room_version.msc2176_redaction_rules: - return event_dict + new_content = event_dict["content"] add_fields("creator") elif event_type == EventTypes.JoinRules: |