summary refs log tree commit diff
diff options
context:
space:
mode:
authorTravis Ralston <travisr@matrix.org>2023-07-19 15:49:11 -0600
committerTravis Ralston <travisr@matrix.org>2023-07-19 15:49:11 -0600
commit565b9f983d8d99164bb2345e7c204e502635251a (patch)
tree5cb51ab42cdcaa160859e15db99bfca03f7828f3
parentFix(?) MSC2176 implementation (diff)
downloadsynapse-565b9f983d8d99164bb2345e7c204e502635251a.tar.xz
Fix https://github.com/matrix-org/synapse/issues/15962
Not breaking anything in LM, but might as well while we're here.
-rw-r--r--synapse/events/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py
index a558d915aa..c692b4008d 100644
--- a/synapse/events/utils.py
+++ b/synapse/events/utils.py
@@ -149,7 +149,8 @@ def prune_event_dict(room_version: RoomVersion, event_dict: JsonDict) -> JsonDic
         if room_version.msc2176_redaction_rules:
             new_content = event_dict["content"]
 
-        add_fields("creator")
+        if not room_version.msc2175_implicit_room_creator:
+            add_fields("creator")
     elif event_type == EventTypes.JoinRules:
         add_fields("join_rule")
         if room_version.msc3083_join_rules: