Kévin Commaille
cd74cdcc0e
events: Generate PossiblyRedacted type for original state events
...
Fix deserialization of redacted prev_content
Can be overriden with the `custom_possibly_redacted` attribute
Co-authored-by: Jonas Platte <jplatte@element.io>
2023-01-03 10:28:40 +01:00
Kévin Commaille
9d8c9c477f
events: Move Unsigned type to new OriginalStateEventContent trait
...
Only original events require it.
2022-12-23 17:55:03 +01:00
Kévin Commaille
2a37e4d109
events: Remove Serialize implementation of unsigned types
2022-12-21 17:03:35 +01:00
Kévin Commaille
e6c995ef1a
events: Implement membership_change on [Redacted]RoomMemberEventContent
2022-12-21 11:08:16 +01:00
Jonas Platte
190205cfb1
events: Remove Option around BundledRelations
...
… because the type has its own empty state (all fields being None).
2022-12-15 16:46:12 +01:00
Jonas Platte
a5c5b0b137
Make clippy happy
2022-12-09 11:45:04 +01:00
Kévin Commaille
61a9d65b71
events: Rename events::relation::Relations to BundledRelations
2022-11-25 22:33:37 +01:00
Jonas Platte
94990f60f2
events: Don't skip serializing empty content of redacted events
2022-11-09 17:11:50 +01:00
Kévin Commaille
045861441a
doc: Update Matrix spec links to v1.4
2022-10-21 10:41:20 +02:00
Jonas Platte
e468a45426
events: Add RoomMemberUnsigned with invite_room_state field
2022-09-12 18:33:46 +02:00
Jonas Platte
aa8e48d1c3
events: Allow customizing the unsigned type of state events
2022-09-12 13:10:10 +02:00
Jonas Platte
674137c41d
events: Use CanBeEmpty trait for skipping unsigned serialization
2022-09-12 11:44:05 +02:00
Jonas Platte
7957dd6adf
events: Replace generic "alias" trait implementations by individual ones
...
… so that rustdoc lists types implementing them properly.
2022-09-05 11:16:30 +02:00
Kévin Commaille
3deae8eac7
identifiers: Add MatrixVersionId::V10
...
According to MSC3604
2022-06-21 13:38:34 +02:00
Kévin Commaille
191f3aca67
events: Split more test assertions
2022-06-07 12:07:57 +02:00
Jonas Platte
73c2963ebd
Enforce consistent semicolons after ()
-typed expressions in blocks
2022-06-03 08:40:16 +02:00
Kévin Commaille
240c8bc4b8
macros: Derive as_str()
for types that derive StringEnum
2022-05-30 17:17:06 +02:00
Jonas Platte
b34bfaf1f6
Replace matches crate with assert_matches
2022-05-24 18:07:29 +02:00
Jonas Platte
bf55ca1556
events: Add (Sync)RoomMemberEvent::membership
2022-05-06 15:59:09 +02:00
Damir Jelić
22a0729442
events: Re-export the Change struct publicly
2022-05-05 09:48:47 +02:00
Jonas Platte
2669be6087
events: Add details to MembershipChange::ProfileChanged
2022-04-26 12:34:00 +02:00
Jonas Platte
4014e6959f
Replace Box<MxcUri> with OwnedMxcUri
2022-04-25 15:16:55 +02:00
Jonas Platte
e136f486db
events: Move membership change logic into its own module
2022-04-25 13:07:56 +02:00
Jonas Platte
106441bdef
events: Clean up implementation of membership_change
2022-04-25 13:07:56 +02:00
Jonas Platte
40221e3cd8
events: Add membership_change method to all kinds of member events
2022-04-25 13:07:56 +02:00
Jonas Platte
a3a7b20678
events: Make more use of event type aliases
2022-04-25 13:07:55 +02:00
Jonas Platte
ae7461622c
events: Update state key types for all state events
...
… and make it mandatory to specify for state events.
2022-04-21 11:16:38 +02:00
Jonas Platte
d8b7886382
events: Allow state key type to be customized by content type
2022-04-21 11:16:38 +02:00
Jonas Platte
489f51e231
events: Replace most Box<Id>s with new owned ID types
2022-04-20 10:39:36 +02:00
Jonas Platte
d855ec33d6
identifiers: Update ToOwned implementations to use new types
...
… and a lot of changes that cascaded from that.
2022-04-20 10:39:36 +02:00
Kévin Commaille
688d5bf47a
docs: Improve string enums documentation
...
Mention the conversion from string.
2022-04-10 14:48:09 +02:00
Jonas Platte
d87874314b
events: Add 'Original' prefix to unredacted types with a redacted form
2022-04-05 14:29:17 +02:00
Jonas Platte
4d52700142
events: Fix non-link URL
2022-03-25 11:02:22 +01:00
Kévin Commaille
0fb3f39c07
common: Deserialize stable names for unstable features
2022-03-21 14:46:13 +01:00
Jonas Platte
d1e70c3d9f
events: Clean up m.room.member docs
2022-03-16 17:03:38 +01:00
Jonas Platte
2551950d20
common: Split up single assert_matches! into many assertions
...
Longer but provides better error messages. We should do this everywhere.
2022-03-16 16:31:00 +01:00
Jonas Platte
ada3108a96
common: Move prev_content into unsigned
2022-03-16 16:30:29 +01:00
Jonas Platte
6dc0bf248b
Use *EventType enums in more places
2022-03-16 12:20:17 +01:00
Jonas Platte
c16ba45c9e
common: Replace event content marker traits with an associated type
2022-03-16 12:20:16 +01:00
Kévin Commaille
bdcf07be87
common: Merge ruma-serde into ruma-common
2022-03-10 12:11:00 +01:00
Kévin Commaille
088d1872b7
common: Merge ruma-identifiers into ruma-common
2022-03-09 17:46:51 +00:00
homersimpsons
2ec50bd03c
doc: migrate links from matrix-doc to matrix-spec(-proposals)
2022-03-08 10:24:26 +01:00
Kévin Commaille
c3f9a3cb70
common: Merge ruma-events into ruma-common
2022-03-04 11:45:07 +00:00