@@ -70,6 +70,9 @@ class RoomVersion:
7070 msc2176_redaction_rules = attr .ib (type = bool )
7171 # MSC3083: Support the 'restricted' join_rule.
7272 msc3083_join_rules = attr .ib (type = bool )
73+ # MSC3375: Support for the proper redaction rules for MSC3083. This mustn't
74+ # be enabled if MSC3083 is not.
75+ msc3375_redaction_rules = attr .ib (type = bool )
7376 # MSC2403: Allows join_rules to be set to 'knock', changes auth rules to allow sending
7477 # m.room.membership event with membership 'knock'.
7578 msc2403_knocking = attr .ib (type = bool )
@@ -92,6 +95,7 @@ class RoomVersions:
9295 limit_notifications_power_levels = False ,
9396 msc2176_redaction_rules = False ,
9497 msc3083_join_rules = False ,
98+ msc3375_redaction_rules = False ,
9599 msc2403_knocking = False ,
96100 msc2716_historical = False ,
97101 msc2716_redactions = False ,
@@ -107,6 +111,7 @@ class RoomVersions:
107111 limit_notifications_power_levels = False ,
108112 msc2176_redaction_rules = False ,
109113 msc3083_join_rules = False ,
114+ msc3375_redaction_rules = False ,
110115 msc2403_knocking = False ,
111116 msc2716_historical = False ,
112117 msc2716_redactions = False ,
@@ -122,6 +127,7 @@ class RoomVersions:
122127 limit_notifications_power_levels = False ,
123128 msc2176_redaction_rules = False ,
124129 msc3083_join_rules = False ,
130+ msc3375_redaction_rules = False ,
125131 msc2403_knocking = False ,
126132 msc2716_historical = False ,
127133 msc2716_redactions = False ,
@@ -137,6 +143,7 @@ class RoomVersions:
137143 limit_notifications_power_levels = False ,
138144 msc2176_redaction_rules = False ,
139145 msc3083_join_rules = False ,
146+ msc3375_redaction_rules = False ,
140147 msc2403_knocking = False ,
141148 msc2716_historical = False ,
142149 msc2716_redactions = False ,
@@ -152,6 +159,7 @@ class RoomVersions:
152159 limit_notifications_power_levels = False ,
153160 msc2176_redaction_rules = False ,
154161 msc3083_join_rules = False ,
162+ msc3375_redaction_rules = False ,
155163 msc2403_knocking = False ,
156164 msc2716_historical = False ,
157165 msc2716_redactions = False ,
@@ -167,6 +175,7 @@ class RoomVersions:
167175 limit_notifications_power_levels = True ,
168176 msc2176_redaction_rules = False ,
169177 msc3083_join_rules = False ,
178+ msc3375_redaction_rules = False ,
170179 msc2403_knocking = False ,
171180 msc2716_historical = False ,
172181 msc2716_redactions = False ,
@@ -182,6 +191,7 @@ class RoomVersions:
182191 limit_notifications_power_levels = True ,
183192 msc2176_redaction_rules = True ,
184193 msc3083_join_rules = False ,
194+ msc3375_redaction_rules = False ,
185195 msc2403_knocking = False ,
186196 msc2716_historical = False ,
187197 msc2716_redactions = False ,
@@ -197,6 +207,7 @@ class RoomVersions:
197207 limit_notifications_power_levels = True ,
198208 msc2176_redaction_rules = False ,
199209 msc3083_join_rules = False ,
210+ msc3375_redaction_rules = False ,
200211 msc2403_knocking = True ,
201212 msc2716_historical = False ,
202213 msc2716_redactions = False ,
@@ -212,6 +223,23 @@ class RoomVersions:
212223 limit_notifications_power_levels = True ,
213224 msc2176_redaction_rules = False ,
214225 msc3083_join_rules = True ,
226+ msc3375_redaction_rules = False ,
227+ msc2403_knocking = True ,
228+ msc2716_historical = False ,
229+ msc2716_redactions = False ,
230+ )
231+ V9 = RoomVersion (
232+ "9" ,
233+ RoomDisposition .STABLE ,
234+ EventFormatVersions .V3 ,
235+ StateResolutionVersions .V2 ,
236+ enforce_key_validity = True ,
237+ special_case_aliases_auth = False ,
238+ strict_canonicaljson = True ,
239+ limit_notifications_power_levels = True ,
240+ msc2176_redaction_rules = False ,
241+ msc3083_join_rules = True ,
242+ msc3375_redaction_rules = True ,
215243 msc2403_knocking = True ,
216244 msc2716_historical = False ,
217245 msc2716_redactions = False ,
@@ -227,6 +255,7 @@ class RoomVersions:
227255 limit_notifications_power_levels = True ,
228256 msc2176_redaction_rules = False ,
229257 msc3083_join_rules = False ,
258+ msc3375_redaction_rules = False ,
230259 msc2403_knocking = True ,
231260 msc2716_historical = True ,
232261 msc2716_redactions = False ,
@@ -242,6 +271,7 @@ class RoomVersions:
242271 limit_notifications_power_levels = True ,
243272 msc2176_redaction_rules = False ,
244273 msc3083_join_rules = False ,
274+ msc3375_redaction_rules = False ,
245275 msc2403_knocking = True ,
246276 msc2716_historical = True ,
247277 msc2716_redactions = True ,
@@ -261,6 +291,7 @@ class RoomVersions:
261291 RoomVersions .V7 ,
262292 RoomVersions .MSC2716 ,
263293 RoomVersions .V8 ,
294+ RoomVersions .V9 ,
264295 )
265296}
266297
0 commit comments