mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:16:09 -04:00
Restricted rooms (MSC3083) should not have their allow key redacted. (#10489)
This commit is contained in:
parent
c3b037795a
commit
752fe0cd98
3 changed files with 46 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue