summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-07-28 07:03:01 -0400
committerGitHub <noreply@github.com>2021-07-28 07:03:01 -0400
commit752fe0cd9869d25bb3e02a539aba67e98afea514 (patch)
treee55c176c7f2e89d0233760acfab9b5eae1631803 /synapse
parentSupport for MSC2285 (hidden read receipts) (#10413) (diff)
downloadsynapse-752fe0cd9869d25bb3e02a539aba67e98afea514.tar.xz
Restricted rooms (MSC3083) should not have their allow key redacted. (#10489)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/events/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py

index ec96999e4e..f4da9e0923 100644 --- a/synapse/events/utils.py +++ b/synapse/events/utils.py
@@ -109,6 +109,8 @@ def prune_event_dict(room_version: RoomVersion, event_dict: dict) -> dict: add_fields("creator") elif event_type == EventTypes.JoinRules: add_fields("join_rule") + if room_version.msc3083_join_rules: + add_fields("allow") elif event_type == EventTypes.PowerLevels: add_fields( "users",