5234 Commits

Author SHA1 Message Date
Jonas Platte
f45a09e958
Appease clippy 2023-05-24 10:41:24 +02:00
Jonas Platte
486ecc2b68
Upgrade yap to 0.10.0 2023-05-24 09:58:19 +02:00
Jonas Platte
12537c19ac
Upgrade criterion to 0.5.0 2023-05-24 09:58:10 +02:00
Jonathan de Jong
01344edc8d
Update Mutual Rooms (MSC2666) implementation (#1547) 2023-05-20 22:24:22 +02:00
Kévin Commaille
dcbb5ec432 client: Upgrade hyper-rustls dependency 2023-05-19 19:55:23 +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
10d70c6055 client-api: Fix timeout field in media download endpoint requests
According to the stabilization spec PR.
2023-05-04 13:12:43 +02:00
Kévin Commaille
b27e54c7ed serde: Add deser functions for Duration from milliseconds 2023-05-04 13:12:43 +02:00
Kévin Commaille
f3ba40a56f client-api: Use Request::new() in Request::from_url() for get_content_as_filename 2023-05-04 13:12:43 +02:00
Kévin Commaille
67019c7f48 client-api: Fix the type of unused_expires_at for create_mxc_uri 2023-05-04 13:12:43 +02:00
Kévin Commaille
0e5503ed88 client-api: Add filename field for create_content_async 2023-05-04 13:12:43 +02:00
Kévin Commaille
e0f373ec74 ci: Only allow spec links with version as whole path segment 2023-05-04 13:04:57 +02:00
Kévin Commaille
e97e46e623 chore: Fix URLs to old spec 2023-05-04 13:04:57 +02:00
Kévin Commaille
d98903e46c chore: Work around new rustfmt bug 2023-05-04 13:04:57 +02:00
Jonas Platte
d5b0cc608f
Add user ID localpart emptiness check 2023-05-02 15:09:23 +02:00
Jonas Platte
54a4223caa client-api: Fix type of SlidingSyncRoom#invite_state 2023-04-27 19:27:05 +02:00
Kévin Commaille
b50037affc events: Implement sanitize on MessageType 2023-04-27 19:19:37 +02:00
Jonas Platte
44ed922ba2
events: Remove unnecessary Option around sliding sync extension types 2023-04-27 17:56:29 +02:00
Jonas Platte
1224dd3810
events: Add more convenient power level action checks to RoomPowerLevels 2023-04-27 12:20:11 +02:00
Jonas Platte
21e9af105c
Add a pull request template 2023-04-27 11:50:08 +02:00
Jonas Platte
1c88cef1a1
ci: Use cargo's sparse registry format 2023-04-26 17:38:49 +02:00
Jonas Platte
44393fe171
ci: Remove unnecessary env variable from docs workflows 2023-04-26 17:38:41 +02:00
Kévin Commaille
af2407e98a client-api: Add M_DUPLICATE_ANNOTATION error kind
According to MSC2677
2023-04-26 16:02:19 +02:00
Jonas Platte
cb512f01d6
macros: Fix weird indentation 2023-04-24 17:02:23 +02:00
Jonas Platte
53622f8ce0
macros: Upgrade syn to 2.0 2023-04-24 17:02:23 +02:00
Jonas Platte
fd895fab40 Upgrade checkout GitHub action 2023-04-24 17:02:13 +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
0143bd9b9f
Replace other actions-rs GitHub actions 2023-04-20 15:14:37 +02:00
Jonas Platte
38245da1ba
Replace unmaintained actions-rs/toolchain with dtolnay/rust-toolchain 2023-04-20 15:14:37 +02:00
Jonas Platte
927be5f256
Upgrade GitHub actions 2023-04-20 14:00:50 +02:00
Jonas Platte
4c85fe9c78
Replace compat feature with more fine-grained compat-* features
… and document them.
2023-04-20 14:00:27 +02:00
Jonas Platte
57b7b2d0f5
Add context to compat attribute 2023-04-20 13:02:30 +02:00
Jonas Platte
89e398fd06
events: Add back relations accessors for message-like event enums 2023-04-18 11:33:54 +02:00
Jonas Platte
0bbad284f3
events: Add RoomRedactionUnsigned 2023-04-18 11:16:56 +02:00
Kévin Commaille
2bf33def5c client-api: Remove token from keys::get_keys::Request
According to a spec clarification.
2023-04-17 16:11:38 +02:00
Jonas Platte
fea6299935
Fix broken doc comment
Thanks clippy!
2023-04-12 19:19:17 +02:00
Jonas Platte
2d23af2f98
Check dependencies more exhaustively, using cargo-deny 2023-04-12 19:11:00 +02:00
Jonas Platte
1229fa4461
events: Add FullStateEventContent::redact 2023-04-11 16:16:32 +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
Jonas Platte
326c77aad3
xtask: Silence clippy lint 2023-04-11 13:01:48 +02:00
Kévin Commaille
c1a36a2047 client-api: Mention that backslashes should be escaped in filter event_fields
According to MSC3980
2023-04-11 11:18:20 +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
Ivan Enderlin
66f417c3f2 chore: Make Clippy happy. 2023-04-06 14:51:25 +02:00
Ivan Enderlin
fe3a8ff669 feat(client-api): Support bump_event_types in sync::sync_events::v4::Request.
This patch updates `sync::sync_events::v4::Request` to add the new
`bump_event_types` field, as described in [MSC3575] (more precisely in
this [diff]).

That's the first step to address https://github.com/matrix-org/matrix-rust-sdk/issues/1728.

[MSC3575]: https://github.com/matrix-org/matrix-spec-proposals/blob/kegan/sync-v3/proposals/3575-sync.md
[diff]: 35b79f6ebe...5bd13e66df (diff-1f7276cbbee4eeaaca06b07d2fe58312eab735259f2490e28e04710dde77fdccL78)
2023-04-06 14:51:25 +02:00
Jonas Platte
e61e0ccf6b
Implement MSC3925
… without a feature flag because it is a breaking change, so the feature
would have to be non-additive, which is a no-go.
Limited support for the previous replacement format is kept.
2023-03-15 14:49:51 +01:00