Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix(?) MSC2176 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jul 19, 2023
1 parent c50cb6e commit 1e77a62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/events/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ def add_fields(*fields: str) -> None:
]

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:
Expand Down

0 comments on commit 1e77a62

Please sign in to comment.