Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement MSC4141: Add time and day push rule condition #16858

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
173 changes: 167 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions changelog.d/16858.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Experimental support for [MSC4141](https://github.com/matrix-org/matrix-spec-proposals/pull/4141): the `time_and_day` push rule condition. Contributed by @hanadi92.
2 changes: 2 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ sha2 = "0.10.8"
serde = { version = "1.0.144", features = ["derive"] }
serde_json = "1.0.85"
ulid = "1.1.2"
chrono = { version = "0.4.33", features = ["serde"] }
chrono-tz = { version = "0.8.5", features = ["serde"]}

[features]
extension-module = ["pyo3/extension-module"]
Expand Down
4 changes: 4 additions & 0 deletions rust/benches/evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ fn bench_match_exact(b: &mut Bencher) {
true,
vec![],
false,
false,
)
.unwrap();

Expand Down Expand Up @@ -105,6 +106,7 @@ fn bench_match_word(b: &mut Bencher) {
true,
vec![],
false,
false,
)
.unwrap();

Expand Down Expand Up @@ -150,6 +152,7 @@ fn bench_match_word_miss(b: &mut Bencher) {
true,
vec![],
false,
false,
)
.unwrap();

Expand Down Expand Up @@ -195,6 +198,7 @@ fn bench_eval_message(b: &mut Bencher) {
true,
vec![],
false,
false,
)
.unwrap();

Expand Down
Loading
Loading