5399 Commits

Author SHA1 Message Date
Jonas Platte
cf59d6ecb1
events: Re-group imports, re-exports in room::message 2023-10-09 15:55:08 +02:00
Jonas Platte
9b1f7363a0
events: Move replacement body text generation to MessageType
… from RoomMessageEventContent.
2023-10-09 15:26:27 +02:00
Jonas Platte
9b94117bf2
events: Move reply fallback generation to MessageType
… from RoomMessageEventContent.
2023-10-09 15:12:52 +02:00
Jonas Platte
5c570b1604
events: Change AddMentions::Yes to only mention the original sender 2023-10-09 14:44:35 +02:00
Jonas Platte
935ac70e28
events: Add missing track_caller attribute
Without this one, the `#[track_caller]` in `make_reply_to` and
`make_reply_to_raw` were pointless.
2023-10-09 13:57:31 +02:00
Jonas Platte
ddc8dc0f42
Update version numbers in README.md 2023-10-06 17:05:28 +02:00
Jonas Platte
ad1098a9a8
Detect 'sign'-related typos 2023-10-06 11:28:50 +02:00
Michael Hollister
7b898bf376
events: Added shared_history flag to room key events
Signed-off-by: Michael Hollister <michael@futo.org>
Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
2023-10-06 09:37:29 +02:00
Jonas Platte
d665a7b571
Release ruma 0.9.0 2023-10-05 17:18:45 +02:00
Jonas Platte
2600e4c0df
Release ruma-state-res 0.10.0 2023-10-05 17:18:04 +02:00
Jonas Platte
af50506033
Release ruma-client 0.12.0 2023-10-05 17:17:19 +02:00
Jonas Platte
e801fd4901
Release ruma-push-gateway-api 0.8.0 2023-10-05 17:16:30 +02:00
Jonas Platte
2c153854d1
Release ruma-server-util 0.2.0 2023-10-05 17:15:52 +02:00
Jonas Platte
25d865ca27
Release ruma-federation-api 0.8.0 2023-10-05 17:14:58 +02:00
Jonas Platte
956012b76b
Release ruma-client-api 0.17.0 2023-10-05 17:14:00 +02:00
Jonas Platte
7e888c4b04
Release ruma-appservice-api 0.9.0 2023-10-05 17:12:48 +02:00
Jonas Platte
fd58a7b8d0
Release ruma-identity-service-api 0.8.0 2023-10-05 17:10:39 +02:00
Jonas Platte
558f342a62
Release ruma-signatures 0.14.0 2023-10-05 17:10:02 +02:00
Jonas Platte
1227db0f08
Release ruma-events 0.27.0 2023-10-05 17:09:02 +02:00
Jonas Platte
b0143702a7
Release ruma-html 0.1.0 2023-10-05 17:06:59 +02:00
Kévin Commaille
d3f3be0d30 ci: Fix rust-cache action config key name 2023-10-05 16:58:13 +02:00
Jonas Platte
7cee1787a2
Release ruma-common 0.12.0 2023-10-05 11:21:46 +02:00
Jonas Platte
7f7d6ee533
Upgrade dependencies 2023-10-05 10:59:59 +02:00
Jonas Platte
c4f4fcebe9
Update contrib/workspace_deps.png 2023-10-05 10:52:50 +02:00
Kévin Commaille
cf4a5d263f events: Add support for custom SecretStorageEncryptionAlgorithm 2023-10-05 10:48:29 +02:00
Kévin Commaille
9696e9083f events: Change SecretStorageEncryptionAlgorithm::V1AesHmacSha2 to a tuple variant
This will facilitate serde when adding a custom variant
2023-10-05 10:48:29 +02:00
Kévin Commaille
22a668e461 events: Rename SecretEncryptionAlgorithm::SecretStorageV1AesHmacSha2 to SecretStorageEncryptionAlgorithm::V1AesHmacSha2
It follows better the namespacing of the algorithm
2023-10-05 10:48:29 +02:00
Jonas Platte
18bede42a4 ci: Upgrade crate-ci/typos 2023-10-04 13:22:45 +02:00
Jonas Platte
2cec6b9997 client-api: Fix a typo in CHANGELOG.md 2023-10-04 13:22:45 +02:00
Kévin Commaille
4fa1846a88 client-api: Rename SessionData to EncryptedSessionData 2023-10-02 11:17:52 +02:00
Jonas Platte
a5d62dca22
identifiers: Rename room_or_room_alias_id module to match the type 2023-09-28 16:44:16 +02:00
Jonas Platte
cf1c7b0b12
identifiers: Simplify implementation of RoomOrAliasId::variant 2023-09-28 16:43:37 +02:00
Jonas Platte
d78f56e85c
identifiers: Test server_name function in room_id tests 2023-09-28 16:43:16 +02:00
Jonas Platte
984cbda962
identifiers: Don't require room IDs to contain a server name
Room IDs being splittable into localpart and servername does not have
much inherent value and there are proposals like MSC4051¹ that propose
changing the format. Relaxing the rules makes Ruma forwards-compatible
with those proposals. The server_name accessor is kept because it is
used by at least one downstream, but is updated to return an `Option`.

¹ https://github.com/matrix-org/matrix-spec-proposals/pull/4051
2023-09-28 16:43:16 +02:00
Jonas Platte
00ee6030c0
identifiers: Remove unnecessary as_str calls from room_id tests 2023-09-28 16:43:16 +02:00
Damir Jelić
7474f3e9ef Add a From SecretName implementation for GlobalAccountDataEventType
The secret names are reused as event types for the account data events
which get uploaded as part of the secret storage key/value store.
2023-09-28 14:38:17 +02:00
Kévin Commaille
4ef6d1641b push: Fix poll push rules IDs 2023-09-28 13:06:16 +02:00
Jonas Platte
b49d644bb4 Update xtask/config.toml.sample 2023-09-28 12:29:25 +02:00
Kévin Commaille
c12f2f4002 push: Update poll push rules
According to MSC3930
2023-09-28 11:46:38 +02:00
Jonas Platte
33f7df8bf2
Release ruma-identifiers-validation 0.9.2 2023-09-27 18:25:45 +02:00
Jonas Platte
10f651916f
identifiers: Add a compat flag to allow arbitrary-length IDs 2023-09-27 16:33:53 +02:00
Jonas Platte
daea31dbe5
Add some empty lines to make ruma/Cargo.toml easier to read 2023-09-27 16:25:07 +02:00
Damir Jelić
51d104c56c Add a constructor for SecretStorageDefaultKeyEventContent 2023-09-27 11:09:04 +02:00
Damir Jelić
50d28aefbd Rename the key field of the SecretStorageDefaultKeyEventContent to key_id
This makes it clearer that the field does not contain a secret key of
any sort.
2023-09-27 11:09:04 +02:00
Damir Jelić
1b6240286f
common: Allow padding when decoding the Base64 type from a string 2023-09-20 10:28:57 +00:00
Kévin Commaille
5040aa2a93 events: Allow to build reply to raw events 2023-09-20 12:18:21 +02:00
Jonas Platte
bc48eb2162
events: Ensure that all public items are documented 2023-09-20 11:52:25 +02:00
Jonas Platte
5907544166
events: Add ReplacementMetadata
… to allow creating replacements without having the full original event.
2023-09-20 11:37:39 +02:00
Kévin Commaille
a53bd09b8a events: Make name required in RoomNameEventContent
The wording of the spec was confusing but it is indeed required
2023-09-18 15:05:26 +02:00
Kévin Commaille
ae537afb0d events: Clarify default value of suggested in SpaceChildEventContent 2023-09-15 13:40:07 +02:00