summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-24 14:25:05 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-24 14:25:05 +0000
commitcae4284f271eb2a77f74aee252a26ffa9211e0c6 (patch)
tree1f640f1c4e3ac86f8e9bf258498184b013bc2b87 /synapse/api
parentUpdate routing of fallback auth in the worker docs. (#7048) (diff)
parentRemove special auth and redaction rules for aliases events in experimental ro... (diff)
downloadsynapse-cae4284f271eb2a77f74aee252a26ffa9211e0c6.tar.xz
Remove special auth and redaction rules for aliases events in experimental room ver. (#7037)
* commit '06eb5cae0':
  Remove special auth and redaction rules for aliases events in experimental room ver. (#7037)
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/room_versions.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/synapse/api/room_versions.py b/synapse/api/room_versions.py

index cf7ee60d3a..871179749a 100644 --- a/synapse/api/room_versions.py +++ b/synapse/api/room_versions.py
@@ -57,7 +57,7 @@ class RoomVersion(object): state_res = attr.ib() # int; one of the StateResolutionVersions enforce_key_validity = attr.ib() # bool - # bool: before MSC2260, anyone was allowed to send an aliases event + # bool: before MSC2261/MSC2432, m.room.aliases had special auth rules and redaction rules special_case_aliases_auth = attr.ib(type=bool, default=False) @@ -102,12 +102,13 @@ class RoomVersions(object): enforce_key_validity=True, special_case_aliases_auth=True, ) - MSC2260_DEV = RoomVersion( - "org.matrix.msc2260", + MSC2432_DEV = RoomVersion( + "org.matrix.msc2432", RoomDisposition.UNSTABLE, EventFormatVersions.V3, StateResolutionVersions.V2, enforce_key_validity=True, + special_case_aliases_auth=False, ) @@ -119,6 +120,6 @@ KNOWN_ROOM_VERSIONS = { RoomVersions.V3, RoomVersions.V4, RoomVersions.V5, - RoomVersions.MSC2260_DEV, + RoomVersions.MSC2432_DEV, ) } # type: Dict[str, RoomVersion]