5172 Commits

Author SHA1 Message Date
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
Kévin Commaille
2ad291ceb0 events: Use the default value of canonical in SpaceParentEventContent's constructor 2023-09-15 13:40:07 +02:00
Kévin Commaille
4dbda813c9 events: Make via required in space child and parent events
According to a spec clarification
2023-09-15 13:40:07 +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
Kévin Commaille
18195e0a6e events: Allow replacement unstable poll start events to have no fallback 2023-09-15 13:19:22 +02:00
Kévin Commaille
a70f99a233 macros: Allow EventContent derive macro to work on enums
Requires to disable all automatic type generation.
2023-09-15 13:19:22 +02:00
Kévin Commaille
e11d30934b events: Move changelog entries from ruma-common to ruma-events 2023-09-15 12:54:48 +02:00
Kévin Commaille
5c6277f298 events: Restore changelog from before crate was merged into ruma-common 2023-09-15 12:54:48 +02:00
Kévin Commaille
48a1c89c0a ruma: Expose missing ruma-events compat features 2023-09-13 17:28:57 +02:00
Kévin Commaille
6da56dc541 events: Add compat feature to send empty string to unset room name 2023-09-13 17:28:57 +02:00
Jonas Platte
f266ea90e7
events: Fix missing feature dependency 2023-09-12 15:53:14 +02:00
Jonas Platte
dad3c70d9d
events: Fix missing re-export of new unstable types 2023-09-12 15:53:07 +02:00
Jonas Platte
a8180722f4
events: Add support for voice messages as implemented by Element Web 2023-09-12 10:20:38 +02:00
Kévin Commaille
b4853aa8fa events: Add method on RoomMessageEventContent to apply a replacement 2023-09-04 14:11:33 +02:00
gnieto
f29317f9d7
Forward unstable-exhaustive-types flag from ruma to ruma-events 2023-09-04 13:46:21 +02:00
Kévin Commaille
e4a46437c9 html: Add note about errors in Html::parse docs 2023-08-29 11:19:48 +02:00
Kévin Commaille
ba973c98f1 html: Expose sanitize API on Html 2023-08-29 11:19:48 +02:00
Kévin Commaille
0120861951 html: Don't expose methods to manipulate HTML
Users should just use the provided way to sanitize HTML
2023-08-29 11:19:48 +02:00
Kévin Commaille
80c71ef454 html: Rename Fragment to Html 2023-08-29 11:19:48 +02:00
Kévin Commaille
9d0f23c8a7 canonical-json: Apply redaction rules of MSC3821 2023-08-29 09:23:44 +02:00
Kévin Commaille
5d68ba3ff4 canonical-json: Apply redaction rules of MSC3989 2023-08-29 09:23:44 +02:00
Kévin Commaille
37d2b2b12f canonical-json: Apply redaction rules of MSC2176 2023-08-29 09:23:44 +02:00
Kévin Commaille
2ef75a572c canonical-json: Allow to preserve all keys and nested keys 2023-08-29 09:23:44 +02:00
Kévin Commaille
bb6edd26bb canonical-json: Apply the redaction rules of latest room version by default 2023-08-29 09:23:44 +02:00
Jonas Platte
399adc911f Use as_variant crate for shorter code 2023-08-28 19:31:39 +02:00
Jonas Platte
ed03c0d2fa federation-api: Simplify pdu_process_response::serialize 2023-08-28 19:31:39 +02:00
Benjamin Bouvier
d3245c287b
client-api: Allow receiving read receipts for all subscribed rooms in sync::v4
Given "rooms: '*'", the sliding sync proxy will return read receipts for all the subscribed rooms at any
time. This patch adds safe static support for this option, still allowing individual room ids too.
2023-08-28 18:26:43 +02:00