signatures: Move Room v9 allowed content keys out of unstable-pre-spec

Part of #849
This commit is contained in:
Kévin Commaille 2022-02-10 18:11:29 +01:00
parent 431decd140
commit 2da8a34ff4
No known key found for this signature in database
GPG Key ID: DD507DAE96E8245C
4 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# [unreleased]
Improvements:
* Move Room Version 9 keys out of `unstable-pre-spec` in `allowed_content_keys_for`
# 0.9.0
Breaking changes:

View File

@ -17,7 +17,6 @@ all-features = true
[features]
compat = ["tracing"]
unstable-exhaustive-types = []
unstable-pre-spec = []
[dependencies]
base64 = "0.13.0"

View File

@ -44,7 +44,6 @@ static ALLOWED_KEYS: &[&str] = &[
fn allowed_content_keys_for(event_type: &str, version: &RoomVersionId) -> &'static [&'static str] {
match event_type {
"m.room.member" => match version {
#[cfg(feature = "unstable-pre-spec")]
RoomVersionId::V9 => &["membership", "join_authorised_via_users_server"],
_ => &["membership"],
},

View File

@ -113,7 +113,6 @@ unstable-pre-spec = [
"ruma-client-api/unstable-pre-spec",
"ruma-events/unstable-pre-spec",
"ruma-federation-api/unstable-pre-spec",
"ruma-signatures/unstable-pre-spec",
"ruma-state-res/__unstable-pre-spec", # for tests
]
unstable-msc2448 = ["ruma-federation-api/unstable-msc2448"]