From 1e77a62c1d011d51a722443ffedeeca3cfb8d440 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 19 Jul 2023 15:48:32 -0600 Subject: Fix(?) MSC2176 implementation Pending resolution of https://matrix.to/#/!NasysSDfxKxZBzJJoE:matrix.org/$yCZra9xATiCfKehho6N52m_22ag9TD_tMoqX3GXEwL0?via=matrix.org&via=libera.chat&via=element.io --- synapse/events/utils.py | 4 ++-- 1 file 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: -- cgit 1.4.1