push-rule: Stabilize default room server ACL push rule
This commit is contained in:
parent
a091faa7d2
commit
5b25f2f223
@ -9,6 +9,7 @@ Breaking changes:
|
||||
Improvements:
|
||||
|
||||
* Add `MatrixVersion::V1_4`
|
||||
* Stabilize default room server ACL push rule
|
||||
|
||||
# 0.10.3
|
||||
|
||||
|
@ -47,7 +47,6 @@ unstable-msc3551 = ["unstable-msc1767"]
|
||||
unstable-msc3552 = ["unstable-msc3551"]
|
||||
unstable-msc3553 = ["unstable-msc3552"]
|
||||
unstable-msc3554 = ["unstable-msc1767"]
|
||||
unstable-msc3786 = []
|
||||
unstable-msc3827 = []
|
||||
unstable-pdu = []
|
||||
unstable-sanitize = ["dep:html5ever", "dep:phf"]
|
||||
|
@ -26,7 +26,6 @@ impl Ruleset {
|
||||
ConditionalPushRule::member_event(),
|
||||
ConditionalPushRule::contains_display_name(),
|
||||
ConditionalPushRule::tombstone(),
|
||||
#[cfg(feature = "unstable-msc3786")]
|
||||
ConditionalPushRule::server_acl(),
|
||||
ConditionalPushRule::roomnotif(),
|
||||
#[cfg(feature = "unstable-msc2677")]
|
||||
@ -174,14 +173,13 @@ impl ConditionalPushRule {
|
||||
|
||||
/// Matches [room server ACLs].
|
||||
///
|
||||
/// [room server ACLs]: https://spec.matrix.org/v1.3/client-server-api/#server-access-control-lists-acls-for-rooms
|
||||
#[cfg(feature = "unstable-msc3786")]
|
||||
/// [room server ACLs]: https://spec.matrix.org/v1.4/client-server-api/#server-access-control-lists-acls-for-rooms
|
||||
pub fn server_acl() -> Self {
|
||||
Self {
|
||||
actions: vec![],
|
||||
default: true,
|
||||
enabled: true,
|
||||
rule_id: ".org.matrix.msc3786.rule.room.server_acl".into(),
|
||||
rule_id: ".m.rule.room.server_acl".into(),
|
||||
conditions: vec![
|
||||
EventMatch { key: "type".into(), pattern: "m.room.server_acl".into() },
|
||||
EventMatch { key: "state_key".into(), pattern: "".into() },
|
||||
|
@ -157,7 +157,6 @@ unstable-msc3554 = ["ruma-common/unstable-msc3554"]
|
||||
unstable-msc3575 = ["ruma-client-api?/unstable-msc3575"]
|
||||
unstable-msc3618 = ["ruma-federation-api?/unstable-msc3618"]
|
||||
unstable-msc3723 = ["ruma-federation-api?/unstable-msc3723"]
|
||||
unstable-msc3786 = ["ruma-common/unstable-msc3786"]
|
||||
unstable-msc3827 = ["ruma-common/unstable-msc3827"]
|
||||
unstable-pdu = ["ruma-common/unstable-pdu"]
|
||||
unstable-sanitize = ["ruma-common/unstable-sanitize"]
|
||||
@ -195,7 +194,6 @@ __ci = [
|
||||
"unstable-msc3575",
|
||||
"unstable-msc3618",
|
||||
"unstable-msc3723",
|
||||
"unstable-msc3786",
|
||||
"unstable-msc3827",
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user