Kévin Commaille
0e7c91d789
docs: Point links to v1.10 of the spec
2024-03-22 21:28:39 +01:00
Kévin Commaille
90d3605b87
push: Make power levels optional in PushConditionRoomCtx
2023-12-03 13:03:06 +01:00
Kévin Commaille
4efca6fba5
docs: Point links to v1.9 of the spec
2023-11-30 14:42:14 +01:00
Kévin Commaille
acfeb38e90
docs: Update spec links to point to v1.8
2023-08-24 12:16:29 +02:00
Kévin Commaille
bcae4e5799
chore: Use .is_some_and(…) instead of .map_or(false, …)
2023-08-14 16:17:25 +02:00
Kévin Commaille
9a5bc6d8c3
identifiers: Add initial support for room version 11
2023-08-09 19:09:19 +02:00
Jonas Platte
c5782ab8aa
Use new owned ID macros throught the codebase
2023-06-20 11:47:50 +02:00
Jonas Platte
ba5bf8cfce
Replace assert_matches by assert_matches2
2023-06-08 11:37:11 +02:00
Kévin Commaille
b1680bd398
push: Link to the spec for dot-separated path definition
2023-05-30 16:38:55 +02:00
Kévin Commaille
38f600c602
docs: Update v1.6 spec links to v1.7
2023-05-30 16:38:30 +02:00
Kévin Commaille
0bec1ad507
push: Stabilize event_property_contains
2023-05-26 09:26:09 +02:00
Kévin Commaille
b8668f863b
push: Stabilize event_property_is
2023-05-26 09:26:09 +02:00
Kévin Commaille
4105169577
push: Panic on Regex construction error
2023-04-24 17:00:01 +02:00
Kévin Commaille
ed7c26ff9f
push: Use bytes Regex to fix regex construction
...
Due to a new error detected in the regex crate.
2023-04-24 17:00:01 +02:00
Kévin Commaille
2ccc0323f6
push: Add support for event_property_contains push condition
...
According to MSC3966
2023-04-11 16:12:05 +02:00
Kévin Commaille
2e7b67bb23
push: Add support for event_property_is push condition
...
According to MSC3758
2023-04-11 16:12:05 +02:00
Kévin Commaille
82b4257bfe
push: Split push conditions tests
2023-04-11 16:12:05 +02:00
Kévin Commaille
33fa1b48ed
push: Collect a bigger subset of JSON values in FlattenedJson
2023-04-11 16:12:05 +02:00
Kévin Commaille
cdfcdecaf8
push: Move FlattenedJson to its own module
2023-04-11 16:12:05 +02:00
Kévin Commaille
ef374ea6b0
push: Escape dots and backslashes in field name for event_match condition
...
According to MSC3873
2023-04-11 11:18:20 +02:00
Kévin Commaille
a859567487
docs: Migrate spec links to v1.6
2023-02-15 09:59:05 +01:00
Kévin Commaille
e653912e22
xtask: Disallow linking to the latest spec when a link uses a non-unique ID
...
These IDs can change from one version to the other if another heading
with the same name is added before, so the link would not
point to the proper part of the spec anymore.
2023-02-12 12:39:24 +01:00
Kévin Commaille
f159776f52
chore: Make all applicable spec links use the latest spec instead of a specific version
2023-02-12 12:39:24 +01:00
Kévin Commaille
e58b9fcd92
tests: Remove unnecessary borrows
2023-02-06 19:11:06 +01:00
Jonas Platte
b859d9c8b0
common: Derive Debug via StringEnum derive
2023-01-13 13:49:59 +01:00
Kévin Commaille
97fd0c3419
push: Allow to deserialize PushCondition with unknown kind
2023-01-07 14:36:25 +01:00
Benjamin Kampmann
9460702b00
feat: add support for unstable-msc3931/3932 style push conditions parsing
2023-01-07 14:36:25 +01:00
Jonas Platte
c7e84c5249
Fix clippy lints
...
Automated using `cargo clippy --fix`.
2022-10-26 13:38:29 +02:00
Kévin Commaille
045861441a
doc: Update Matrix spec links to v1.4
2022-10-21 10:41:20 +02:00
Kévin Commaille
506a7bdf2e
push: Fix regex for word boundaries
2022-06-24 17:32:34 +02:00
Kévin Commaille
1e220a05bf
push: Fix word matching without wildcards
...
Don't match non-ASCII alphanumeric characters
2022-06-24 17:32:34 +02:00
Kévin Commaille
d192184b3c
push: Allow wildcards when matching words
2022-06-23 15:57:54 +02:00
Kévin Commaille
085dc435fa
push: Split test assertions
2022-06-07 12:07:57 +02:00
Jonas Platte
8912182c56
Increase usage of implicit named arguments in format strings
2022-06-03 10:06:28 +02:00
Jonas Platte
5f902851af
Upgrade to Rust 2021
2022-05-27 12:04:23 +02:00
Jonas Platte
b34bfaf1f6
Replace matches crate with assert_matches
2022-05-24 18:07:29 +02:00
Jonas Platte
6a2950884d
push: Consider push rules to not apply to events sent by the user themselves
2022-05-12 12:17:55 +02:00
Jonas Platte
d855ec33d6
identifiers: Update ToOwned implementations to use new types
...
… and a lot of changes that cascaded from that.
2022-04-20 10:39:36 +02:00
Jonas Platte
26aea3a084
common: Consistently use int macros for tests
2022-04-04 16:54:17 +02:00
Kévin Commaille
e2375ed72e
xtask: Add typos check
2022-03-18 14:29:57 +01:00
Kévin Commaille
bdcf07be87
common: Merge ruma-serde into ruma-common
2022-03-10 12:11:00 +01:00
Jonas Platte
1bce0f0c96
common: Instrument push condition matching
2022-03-09 19:21:28 +01:00
Kévin Commaille
088d1872b7
common: Merge ruma-identifiers into ruma-common
2022-03-09 17:46:51 +00:00
Jonas Platte
215cb35806
Clean up import grouping / ordering
2022-02-18 11:20:39 +01:00
Jonas Platte
f9b9112d07
common: Disable push rule matching on numbers or booleans
...
Spec clarification: https://github.com/matrix-org/matrix-doc/pull/3690
2022-02-17 10:09:21 +01:00
Jonas Platte
8f1eae97ce
common: Remove unnecessary bound from FlattenedJson::from_raw
2022-02-12 01:44:57 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST
2021-11-26 00:40:40 +01:00
Jonas Platte
2d4dbfe42f
identifiers: Make RoomId a DST
2021-11-26 00:04:28 +01:00
Jonas Platte
46c7e3f811
Clean up and rewrap documentation comments
2021-08-27 21:32:02 +02:00
Devin Ragotzy
626b5a5d06
common: Make all pub structs non_exhaustive
2021-06-18 11:00:35 +00:00