push: Link to the spec for dot-separated path definition

This commit is contained in:
Kévin Commaille 2023-05-26 12:35:38 +02:00 committed by Kévin Commaille
parent 38f600c602
commit b1680bd398
2 changed files with 3 additions and 4 deletions

View File

@ -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`

View File

@ -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.