Restricted rooms (MSC3083) should not have their allow key redacted. (#10489)

This commit is contained in:
Patrick Cloke 2021-07-28 07:03:01 -04:00 committed by GitHub
parent c3b037795a
commit 752fe0cd98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

View file

@ -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",