5338 Commits

Author SHA1 Message Date
Jonas Platte
684ffc7898 client: Use .to_owned() instead of .parse().unwrap()
… for &str to String conversion in examples.
2024-01-18 16:04:13 +01:00
Richard van der Hoff
9d81576af7
events: Correct properties of SecretStorageV1AesHmacSha2Properties
The `key` and `iv` properties of this type are, and have always been, optional according to the spec.
2024-01-18 13:54:39 +00:00
Jonas Platte
aa3acd88d2 Add error_kind accessor methods for client-server API errors 2024-01-13 11:16:09 +01:00
Jonas Platte
0453a27838 ci: Remove MSRV from job name
… so we don't have to update branch protection rules whenever we bump the MSRV.
2024-01-11 16:49:43 +01:00
Kévin Commaille
a7e1d7fa49 events: Split method to get power level to redact between own and others events 2024-01-11 16:46:36 +01:00
Jonas Platte
0b2a459400 client: Replace async-trait with RPITIT / AFIT
(return type position impl trait in traits / async fn in traits)
2024-01-10 16:31:25 +01:00
Jonas Platte
d77c0d0bd7 xtask: Fix clippy-wasm ci job
Looks like it is not run in CI currently.
2024-01-10 16:19:49 +01:00
Jonas Platte
36fec32640 xtask: Silence new clippy lint 2024-01-10 16:13:32 +01:00
Jonas Platte
8d9e96ed76 Simplify known_versions return types
Thanks to clippy for the lint!
2024-01-10 16:12:49 +01:00
Jonas Platte
157b36d305 xtask: Simplify match arm
Thanks to clippy for the lint!
2024-01-10 16:09:03 +01:00
Kévin Commaille
9a5142052c appservice-api: Make the url field of Registration an Option
It was always possible to set it to `null`, according to the Matrix
spec.
2024-01-03 18:40:40 +01:00
Kévin Commaille
7c49b84e6d events: Add convenience method to check if a user can changed another user's power level 2024-01-02 14:33:09 +01:00
Kévin Commaille
06ac62213c events: Add convenience methods to check if a user can unban users 2024-01-02 14:33:09 +01:00
Kévin Commaille
9d9827c165 events: Add convenience methods about actions to other users according to power levels
Some of these actions are limited by the power level of the other user.
2024-01-02 14:33:09 +01:00
Kévin Commaille
b7829d5607 Fix test 2023-12-26 17:28:43 +01:00
Kévin Commaille
00f8a6743b push: Allow to deserialize Ruleset with missing fields
According to the Matrix Specification, no field is required.
2023-12-26 17:28:43 +01:00
Kévin Commaille
4ae2455f80 client-api: Add GET /auth_issuer endpoint from MSC2965 2023-12-26 15:33:36 +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
df1a63909a events: Implement From<RoomPowerLevels> for PushConditionPowerLevelsCtx 2023-12-03 13:03:06 +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
ac2f725bcc api: Add support for Matrix 1.9 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
ec54fd99de
Merge branch 'ruma-0.9.x' 2023-11-27 16:19:31 +01:00
Jonas Platte
5b6bb2632d
Release ruma 0.9.4 2023-11-27 16:18:37 +01:00
Jonas Platte
23c2b9546d
Release ruma-events 0.27.11 2023-11-27 16:17:39 +01:00
Timo
ef9f790928
events: Add CallNotify event as described by MSC4075
https://github.com/matrix-org/matrix-spec-proposals/pull/4075
2023-11-27 16:17:23 +01:00
Timo
8fc12b0324
events: Add CallNotify event as described by MSC4075
https://github.com/matrix-org/matrix-spec-proposals/pull/4075
2023-11-27 15:49:36 +01:00
Jonas Platte
6639c727ae
Merge branch 'ruma-0.9.x' 2023-11-22 20:02:17 +01:00
Jonas Platte
877b1c63fe
Release ruma-events 0.27.10 2023-11-22 19:52:20 +01:00
Jonas Platte
e90076162e
Release ruma 0.9.3 2023-11-22 19:40:31 +01:00
Jonas Platte
5abb225078
Release ruma-client-api 0.17.4 2023-11-20 22:55:57 +01:00
Benjamin Bouvier
268f206dff
client-api: Use JsOption for avatar field in sliding sync response
The `avatar` field has different semantics whether it's `undefined` (hasn't
changed since previous time) vs `null` (it's now unset). Let's reflect
this in the API of the `SlidingSyncRoom` response. While a public breaking API
change, sliding sync is still considered experimental, so we're not bumping
the main version here.
2023-11-20 22:51:54 +01:00
Benjamin Bouvier
9728f97505
client-api: Use JsOption for avatar field in sliding sync response
The `avatar` field has different semantics whether it's `undefined` (hasn't
changed since previous time) vs `null` (it's now unset). Let's reflect
this in the API of the `SlidingSyncRoom` response. While a public breaking API
change, sliding sync is still considered experimental, so we're not bumping
the main version here.
2023-11-20 22:47:45 +01:00
Jonas Platte
5446ea979b
Update trybuild tests
There's a new stable release of Rust, error messages were tweaked.
2023-11-20 20:30:46 +01:00
Jonas Platte
1328e52387
events: Deprecate relations event_id methods 2023-11-16 14:27:23 +01:00
Jonas Platte
740f357e97
events: Don't fail event content parsing on invalid relation 2023-11-16 14:12:55 +01:00
Jonas Platte
6602782a15
Merge branch 'ruma-0.9.x' 2023-11-16 10:45:30 +01:00
Jonas Platte
8d050d7830
Release ruma-client-api 0.17.3 2023-11-16 10:44:28 +01:00
Jonas Platte
5d7c1f5330
Release ruma-common 0.12.1 2023-11-16 10:43:15 +01:00
Jonas Platte
4189dde59e
client-api: Separate docstring into two paragraphs 2023-11-16 10:42:19 +01:00
Jonas Platte
e30360dd4c
client-api: Fix deserialization of claim_keys responses
… without a `failures` field.
2023-11-16 10:41:42 +01:00
Jonas Platte
2aa8745bd3
client-api: Separate docstring into two paragraphs 2023-11-16 10:30:34 +01:00
Jonas Platte
8467e1342e
client-api: Fix deserialization of claim_keys responses
… without a `failures` field.
2023-11-16 10:28:49 +01:00
Kévin Commaille
9b07772d1a push: Allow to deserialize (New)ConditionalPushRule without conditions 2023-11-15 15:10:42 +01:00
Kévin Commaille
02f29d6114 client-api: Make conversion from PushRule to ConditionalPushRule infallible 2023-11-15 15:10:42 +01:00
Jonas Platte
5d0ac84ff8
Release ruma-client-api 0.17.2 2023-11-15 10:42:11 +01:00
Jonas Platte
b006aa37fa
Release ruma-events 0.27.9 2023-11-15 10:40:41 +01:00
Kévin Commaille
e409d22ea0 Fix fallback text field name for extensible events in RoomMessageEventContentWithoutRelation::make_reply_to_raw() 2023-11-14 19:53:37 +01:00