diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-09-03 12:51:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-03 12:51:15 -0400 |
commit | ae3c16318bf8082c34fa91dc32b30ab9887b3b24 (patch) | |
tree | ccf53e29527e88cd0050870f5243feb299e83736 /synapse/events | |
parent | Make minor changes to changelog (diff) | |
download | synapse-ae3c16318bf8082c34fa91dc32b30ab9887b3b24.tar.xz |
Support MSC3375: room version 9. (#10747)
Diffstat (limited to 'synapse/events')
-rw-r--r-- | synapse/events/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py index 738a151cef..fb22337e27 100644 --- a/synapse/events/utils.py +++ b/synapse/events/utils.py @@ -104,6 +104,8 @@ def prune_event_dict(room_version: RoomVersion, event_dict: dict) -> dict: if event_type == EventTypes.Member: add_fields("membership") + if room_version.msc3375_redaction_rules: + add_fields("join_authorised_via_users_server") elif event_type == EventTypes.Create: # MSC2176 rules state that create events cannot be redacted. if room_version.msc2176_redaction_rules: |