signatures: Move Room v9 allowed content keys out of unstable-pre-spec
Part of #849
This commit is contained in:
parent
431decd140
commit
2da8a34ff4
@ -1,5 +1,9 @@
|
|||||||
# [unreleased]
|
# [unreleased]
|
||||||
|
|
||||||
|
Improvements:
|
||||||
|
|
||||||
|
* Move Room Version 9 keys out of `unstable-pre-spec` in `allowed_content_keys_for`
|
||||||
|
|
||||||
# 0.9.0
|
# 0.9.0
|
||||||
|
|
||||||
Breaking changes:
|
Breaking changes:
|
||||||
|
@ -17,7 +17,6 @@ all-features = true
|
|||||||
[features]
|
[features]
|
||||||
compat = ["tracing"]
|
compat = ["tracing"]
|
||||||
unstable-exhaustive-types = []
|
unstable-exhaustive-types = []
|
||||||
unstable-pre-spec = []
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = "0.13.0"
|
base64 = "0.13.0"
|
||||||
|
@ -44,7 +44,6 @@ static ALLOWED_KEYS: &[&str] = &[
|
|||||||
fn allowed_content_keys_for(event_type: &str, version: &RoomVersionId) -> &'static [&'static str] {
|
fn allowed_content_keys_for(event_type: &str, version: &RoomVersionId) -> &'static [&'static str] {
|
||||||
match event_type {
|
match event_type {
|
||||||
"m.room.member" => match version {
|
"m.room.member" => match version {
|
||||||
#[cfg(feature = "unstable-pre-spec")]
|
|
||||||
RoomVersionId::V9 => &["membership", "join_authorised_via_users_server"],
|
RoomVersionId::V9 => &["membership", "join_authorised_via_users_server"],
|
||||||
_ => &["membership"],
|
_ => &["membership"],
|
||||||
},
|
},
|
||||||
|
@ -113,7 +113,6 @@ unstable-pre-spec = [
|
|||||||
"ruma-client-api/unstable-pre-spec",
|
"ruma-client-api/unstable-pre-spec",
|
||||||
"ruma-events/unstable-pre-spec",
|
"ruma-events/unstable-pre-spec",
|
||||||
"ruma-federation-api/unstable-pre-spec",
|
"ruma-federation-api/unstable-pre-spec",
|
||||||
"ruma-signatures/unstable-pre-spec",
|
|
||||||
"ruma-state-res/__unstable-pre-spec", # for tests
|
"ruma-state-res/__unstable-pre-spec", # for tests
|
||||||
]
|
]
|
||||||
unstable-msc2448 = ["ruma-federation-api/unstable-msc2448"]
|
unstable-msc2448 = ["ruma-federation-api/unstable-msc2448"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user