File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -288,10 +288,8 @@ sub redact_event
288288 # - m.room.power_levels: 'invite' is also preserved
289289 # - m.room.member: 'third_party_invite.signed' is also preserved
290290 # - m.room.redaction: 'redacts' is also preserved
291- # The regex /\A[0-9]+\z/ ignores room versions that are not comprised only of digits
292- # (e.g. custom non-numeric versions used in some federation tests).
293- # (e.g. unstable room versions).
294- if ( $room_version =~ / \A [0-9]+\z / and $room_version >= 11 ) {
291+ # Non-numeric (unstable) room versions are assumed to be 11+
292+ if ( $room_version !~ / \A [0-9]+\z / or $room_version >= 11 ) {
295293 if ( $type eq ' m.room.create' ) {
296294 %$new_content = %$old_content ;
297295 $event -> {unsigned }{age_ts } = $old_unsigned -> {age_ts } if exists $old_unsigned -> {age_ts };
You can’t perform that action at this time.
0 commit comments