common: Move reaction pushrule to unstable-msc2677 feature
This commit is contained in:
parent
e5d07e90c5
commit
757419df13
@ -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"] }
|
||||
|
@ -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],
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user