Fix redactions for aliases events

This commit is contained in:
Timo Kösters 2021-03-13 19:39:16 +01:00 committed by GitHub
parent e843ccdb90
commit 5eec262130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -9,3 +9,4 @@ Breaking changes:
Bug fixes: Bug fixes:
* Verify only the required signatures on `verify_event` * Verify only the required signatures on `verify_event`
* Fix redactions for aliases events

View File

@ -58,7 +58,7 @@ fn allowed_content_keys_for(event_type: &str, version: &RoomVersionId) -> &'stat
| RoomVersionId::Version2 | RoomVersionId::Version2
| RoomVersionId::Version3 | RoomVersionId::Version3
| RoomVersionId::Version4 | RoomVersionId::Version4
| RoomVersionId::Version5 => &["join_rule"], | RoomVersionId::Version5 => &["aliases"],
// All other room versions, including custom ones, are treated by version 6 rules. // All other room versions, including custom ones, are treated by version 6 rules.
// TODO: Should we return an error for unknown versions instead? // TODO: Should we return an error for unknown versions instead?
_ => &[], _ => &[],