101 Commits

Author SHA1 Message Date
Jason Volk
b560338b2a reduce several tracing spans to debug level
Signed-off-by: Jason Volk <jason@zemos.net>
2025-01-23 04:36:37 +00:00
Jason Volk
ac37db212a fix lints
Signed-off-by: Jason Volk <jason@zemos.net>
2025-01-01 22:20:39 +00:00
strawberry
39c1addd37
implement MSC4210, add missing .m.rule.contains_user_name check
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-10-26 15:55:42 -04:00
Kévin Commaille
cc1b2144ea chore: Point links to v1.12 of the spec 2024-10-19 14:59:08 -04:00
Kévin Commaille
04654f8833 chore: Fix new clippy warnings 2024-07-29 20:03:44 +02:00
Kévin Commaille
b8e4d5b6a2 misc: Update spec links to latest version 2024-06-21 18:10:14 +02:00
Kévin Commaille
0e7c91d789 docs: Point links to v1.10 of the spec 2024-03-22 21:28:39 +01:00
Kévin Commaille
76c58b143a push: Don't use deprecated methods 2024-02-14 13:07:21 +01:00
Kévin Commaille
56d8a59c1b push: Add accessor for the RuleKind of Predefined{*}RuleId 2023-12-05 10:56:36 +01:00
Kévin Commaille
ba75b09a45 push: Implement AsRef<str> for PredefinedRuleId 2023-12-05 10:56:36 +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
b4133b7863 push: Stabilize support for MSC3958 2023-11-30 14:37:17 +01:00
Jonas Platte
e8bc589e52
Transition to type privacy lints 2023-11-09 09:50:04 +01:00
Kévin Commaille
4ef6d1641b push: Fix poll push rules IDs 2023-09-28 13:06:16 +02:00
Kévin Commaille
c12f2f4002 push: Update poll push rules
According to MSC3930
2023-09-28 11:46:38 +02:00
Kévin Commaille
31ae99cf52 Add support for suppress edits push rule
According to MSC3958
2023-09-15 13:33:07 +02:00
Kévin Commaille
369cf8629e push: Move PredefinedOverrideRuleId::Reaction
To have the same order as when the rules are included in the ruleset
2023-09-15 13:33:07 +02:00
Jonas Platte
399adc911f Use as_variant crate for shorter code 2023-08-28 19:31:39 +02:00
Kévin Commaille
acfeb38e90 docs: Update spec links to point to v1.8 2023-08-24 12:16:29 +02:00
Jonas Platte
8e10064364 Enforce import grouping
Includes a few manual changes to make rustfmt behave a bit better.
2023-08-22 12:31:49 +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
Kévin Commaille
f261f2ebed push: Add convenience methods for the different actions of a push rule 2023-06-16 11:05:14 +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
766fba75f9 push: Add support for intentional mentions push rules
According to MSC3952
2023-05-26 14:39:58 +02:00
Kévin Commaille
f8ed83aa53 push: Collect empty objects in FlattenedJson 2023-05-26 14:39:58 +02:00
Kévin Commaille
2d697fcc95 events: Stabilize annotations and reactions 2023-05-26 09:26: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
6a77b4c9e4 push: Remove the DontNotify and Coalesce variants of push::Action
According to MSC3987.
2023-05-04 13:44:54 +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
Jonas Platte
fea6299935
Fix broken doc comment
Thanks clippy!
2023-04-12 19:19:17 +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
8eea3e0549 push: Enable by default .m.rule.tombstone push rule
As defined in the spec.
2023-03-14 12:01:40 +01:00
Kévin Commaille
a399a4017a
push: Add convenience methods to check if an action triggers a notification or a sound 2023-03-13 13:54:22 +01:00
Kévin Commaille
b6717bc2ea
push: Add convenience method to check if an action is a highlight tweak 2023-03-13 13:36:56 +01:00
Kévin Commaille
ba296ec466 push: Add method to remove a user-defined push rule from a Ruleset 2023-03-02 11:30:48 +01:00
Kévin Commaille
a78d2a7dcf push: Add method to update server-default push rules 2023-03-02 11:30:48 +01:00
Kévin Commaille
c44e0b5e5a push: Fix ordering of docs 2023-03-02 11:30:48 +01:00
Kévin Commaille
a859567487 docs: Migrate spec links to v1.6 2023-02-15 09:59:05 +01:00