From b1680bd3982cdd7d17bdd786de604390b90cae34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 26 May 2023 12:35:38 +0200 Subject: [PATCH] push: Link to the spec for dot-separated path definition --- crates/ruma-common/CHANGELOG.md | 2 +- crates/ruma-common/src/push/condition.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/ruma-common/CHANGELOG.md b/crates/ruma-common/CHANGELOG.md index af87dd9d..9fcdaa91 100644 --- a/crates/ruma-common/CHANGELOG.md +++ b/crates/ruma-common/CHANGELOG.md @@ -27,7 +27,7 @@ Improvements: - Add `AsRef<[u8]>` implementations for identifier types - Add `InitialStateEvent::{new, to_raw, to_raw_any}` - Add a convenience method to construct `RoomEncryptionEventContent` with the recommended defaults. -- `PushCondition::EventMatch` and `FlattenedJson` now use escaped dotted paths, according to MSC3873 +- `PushCondition::EventMatch` and `FlattenedJson` now use escaped dotted paths (MSC3873 / Matrix 1.7) - Add support for `event_property_is` push condition (MSC3758 / Matrix 1.7) - Add support for `event_property_contains` push condition (MSC3966 / Matrix 1.7) - Add `FullStateEventContent::redact` diff --git a/crates/ruma-common/src/push/condition.rs b/crates/ruma-common/src/push/condition.rs index e54776e3..6f32cc2b 100644 --- a/crates/ruma-common/src/push/condition.rs +++ b/crates/ruma-common/src/push/condition.rs @@ -66,10 +66,9 @@ impl RoomVersionFeature { pub enum PushCondition { /// A glob pattern match on a field of the event. EventMatch { - /// The dot-separated path of the property of the event to match. See [MSC3873] for its - /// format. + /// The [dot-separated path] of the property of the event to match. /// - /// [MSC3873]: https://github.com/matrix-org/matrix-spec-proposals/pull/3873 + /// [dot-separated path]: https://spec.matrix.org/latest/appendices/#dot-separated-property-paths key: String, /// The glob-style pattern to match against.