diff --git a/crates/ruma-common/Cargo.toml b/crates/ruma-common/Cargo.toml index 4a47b0e0..ed4783f6 100644 --- a/crates/ruma-common/Cargo.toml +++ b/crates/ruma-common/Cargo.toml @@ -18,6 +18,7 @@ rustdoc-args = ["--cfg", "docsrs"] compat = [] unstable-exhaustive-types = [] unstable-pre-spec = [] +unstable-msc2677 = [] [dependencies] indexmap = { version = "1.6.2", features = ["serde-1"] } diff --git a/crates/ruma-common/src/push/predefined.rs b/crates/ruma-common/src/push/predefined.rs index b2034e5d..9ffc557b 100644 --- a/crates/ruma-common/src/push/predefined.rs +++ b/crates/ruma-common/src/push/predefined.rs @@ -21,7 +21,7 @@ impl Ruleset { pub fn server_default(user_id: &UserId) -> Self { Self { content: indexset![PatternedPushRule::contains_user_name(user_id)], - #[cfg(feature = "unstable-pre-spec")] + #[cfg(feature = "unstable-msc2677")] override_: indexset![ ConditionalPushRule::master(), ConditionalPushRule::suppress_notices(), @@ -32,7 +32,7 @@ impl Ruleset { ConditionalPushRule::roomnotif(), ConditionalPushRule::reaction(), ], - #[cfg(not(feature = "unstable-pre-spec"))] + #[cfg(not(feature = "unstable-msc2677"))] override_: indexset![ ConditionalPushRule::master(), ConditionalPushRule::suppress_notices(), @@ -161,7 +161,7 @@ impl ConditionalPushRule { /// Matches emoji reactions to a message /// MSC2677: Annotations and Reactions - #[cfg(feature = "unstable-pre-spec")] + #[cfg(feature = "unstable-msc2677")] pub fn reaction() -> Self { Self { actions: vec![DontNotify], diff --git a/crates/ruma/Cargo.toml b/crates/ruma/Cargo.toml index dab7cf3d..648947bb 100644 --- a/crates/ruma/Cargo.toml +++ b/crates/ruma/Cargo.toml @@ -121,7 +121,10 @@ unstable-msc2448 = [ ] unstable-msc2675 = ["ruma-events/unstable-msc2675"] unstable-msc2676 = ["ruma-events/unstable-msc2676"] -unstable-msc2677 = ["ruma-events/unstable-msc2677"] +unstable-msc2677 = [ + "ruma-common/unstable-msc2677", + "ruma-events/unstable-msc2677", +] unstable-msc3618 = ["ruma-federation-api/unstable-msc3618"] [dependencies]