777 Commits

Author SHA1 Message Date
Kévin Commaille
08aa2ca04c events: Update types according to changes in MSC3245 2023-02-27 20:28:38 +01:00
Kévin Commaille
41be6ac18b events: Update types according to MSC3927 and changes in MSC3246 2023-02-27 20:28:38 +01:00
Kévin Commaille
60f754322e events: Update types according to changes in MSC3553 2023-02-27 20:28:38 +01:00
Kévin Commaille
5985bbe803 events: Update types according to changes in MSC3552 2023-02-27 20:28:38 +01:00
Kévin Commaille
2de1cecec6 events: Update types according to changes in MSC3551 2023-02-27 20:28:38 +01:00
Kévin Commaille
8477efb2ef events: Update types according to changes in MSCs 1767, 3954, 3955 and 3956 2023-02-27 20:28:38 +01:00
Kévin Commaille
e490c8893d events: Remove the serde alias for the blurhash field in events
Some clients send both the stable and unstable version so deserialization fails.
2023-02-27 17:04:39 +01:00
Kévin Commaille
f29bbebf08 events: Make the json_object macro syntax easier to read 2023-02-23 19:31:08 +01:00
Kévin Commaille
32901da35f events: Reorganize tests
Move tests to the proper files, streamline test names and remove
duplicates.
2023-02-23 19:31:08 +01:00
Jonas Platte
54d27f1083
events: Implement {From,Into}Iterator for ReceiptEventContent 2023-02-22 17:32:40 +01:00
Jonas Platte
53f9cf52ed
events: Implement {From,Into}Iterator for DirectEventContent 2023-02-22 17:32:39 +01:00
Jonas Platte
c2d8b4f4b9
events: Update changelog 2023-02-22 14:41:02 +01:00
Jonas Platte
11d5020565 events: Don't require threads to contain m.in_reply_to 2023-02-22 14:38:23 +01:00
Kévin Commaille
f17f288a3f
Release ruma-common 0.11.3 2023-02-15 12:44:42 +01:00
Kévin Commaille
a859567487 docs: Migrate spec links to v1.6 2023-02-15 09:59:05 +01:00
Kévin Commaille
729d003c88 fixup! events: Deprecate MessageAuthenticationCode::HkdfHmacSha256 2023-02-14 22:19:47 +01:00
Kévin Commaille
4718a88bfe fixup! events: Deprecate MessageAuthenticationCode::HkdfHmacSha256 2023-02-14 22:19:47 +01:00
Kévin Commaille
4323fe8b3f events: Deprecate MessageAuthenticationCode::HkdfHmacSha256
According to MSC3783 / Matrix 1.6
2023-02-14 22:19:47 +01:00
Kévin Commaille
798c25e32a events: Move MessageAuthenticationCode::HkdfHmacSha256V2 out of unstable-msc3783 2023-02-14 22:19:47 +01:00
Kévin Commaille
9d8784ee9a push: Move .m.rule.roomnotif push rule before .m.rule.tombstone
According to a spec clarification in Matrix 1.6
2023-02-14 22:05:13 +01:00
Kévin Commaille
4f8bcf3ee1 common: Add MatrixVersion::V1_6 2023-02-14 18:44:04 +01:00
Kévin Commaille
e653912e22 xtask: Disallow linking to the latest spec when a link uses a non-unique ID
These IDs can change from one version to the other if another heading
with the same name is added before, so the link would not
point to the proper part of the spec anymore.
2023-02-12 12:39:24 +01:00
Kévin Commaille
f159776f52 chore: Make all applicable spec links use the latest spec instead of a specific version 2023-02-12 12:39:24 +01:00
HKalbasi
270f8196bc
identifiers: Don't allow invalid characters in RoomVersionId 2023-02-12 11:05:33 +01:00
Kévin Commaille
efc60d6a64 docs: Fix invalid link to the spec 2023-02-11 12:14:33 +01:00
Kévin Commaille
699c2daf39
events: Remove mixed types and conversion functions for extensible events
Mixed types have been removed from MSC1767.
2023-02-09 16:25:51 +01:00
Jonas Platte
94c01077c5
Release ruma-common 0.11.2 2023-02-07 21:04:39 +01:00
Jonas Platte
3013ca0dc1
identifiers: Don't accept colons in user-id localparts, even in compat 2023-02-07 20:56:22 +01:00
Jonas Platte
9c65a7dcae
events: Use input visibility for generated types in EventContent derive 2023-02-07 20:55:53 +01:00
Kévin Commaille
e58b9fcd92 tests: Remove unnecessary borrows 2023-02-06 19:11:06 +01:00
Kévin Commaille
ad86f4603a events: Derive Hash for ReceiptType and ReceiptThread
Since uniqueness of receipts is determined per type and per thread
it's common to use them as keys of a map.
2023-02-06 19:11:06 +01:00
Jonas Platte
093c231792
Release ruma-common 0.11.1 2023-02-02 13:02:45 +01:00
Jonas Platte
1249dda583
common: Implement Debug manually for [Milli]SecondsSinceUnixEpoch 2023-02-02 12:10:29 +01:00
Jonas Platte
9bbe06aa3f
Release ruma-common 0.11.0 2023-02-01 13:26:09 +01:00
Jonas Platte
706bbf1753
Remove no-op default-features = false 2023-02-01 13:24:43 +01:00
Jonas Platte
b6f0a43fa3
Use workspace dependencies for path dependencies 2023-02-01 12:37:45 +01:00
Jonas Platte
fe5077b1a5
Upgrade base64 to 0.21 2023-01-31 18:01:01 +01:00
Jonas Platte
e37d064306
macros: Update expected trybuild test output 2023-01-30 16:34:26 +01:00
Jonas Platte
31671da257
events: Simplify membership_change match 2023-01-26 11:26:37 +01:00
Jonas Platte
bf4520a2a9
events: Restrict what counts as MembershipChange::ProfileChanged 2023-01-26 11:25:09 +01:00
Jonas Platte
69337d1f4e
events: Add custom PossiblyRedactedRoomTombstoneEventContent
The auto-generated type would look different based on whether the compat
feature is active or not previously.
2023-01-25 16:46:37 +01:00
Kévin Commaille
06820cdc92 common: Use the same percent encoding set consistently 2023-01-24 20:15:09 +01:00
Zwelf
3d74117dd4
events: Add Serialize back to InitialStateEvent 2023-01-24 16:04:47 +00:00
Jonas Platte
f99ff2a83c
events: Remove unused Serialize, Deserialize impls 2023-01-18 09:30:47 +01:00
Jonas Platte
62ed200a56
events: Use possibly-redacted content for StrippedStateEvent 2023-01-16 21:28:53 +01:00
Jonas Platte
2eba14f0cc
events: Rework the content traits 2023-01-16 21:28:53 +01:00
Jonas Platte
49a0650f62
events: Remove EventKind
The EventType associated type on EventContent practically provides the
same information.
2023-01-16 21:17:00 +01:00
Damir Jelić
19f68065f1
common: Derive PartialEq and Eq for the KeyUsage enum 2023-01-16 16:13:10 +01:00
Kévin Commaille
48288865db
api: Only percent-encode reserved characters in endpoint URL path 2023-01-16 13:07:33 +01:00
Jonas Platte
b859d9c8b0
common: Derive Debug via StringEnum derive 2023-01-13 13:49:59 +01:00