Kévin Commaille
f17de39ed4
events: More relation serde fixes
...
It seems that we cant count on serde_json::to_value to detect
duplicates,
because it swallows them instead of returning an error.
The only solution then is to serialize to string and try to deserialize
again.
2024-06-25 14:10:11 +02:00
Jonas Platte
31331f3165
Bring back ruma-events
...
Co-authored-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-08-28 10:23:54 +02:00
Kévin Commaille
c3f9a3cb70
common: Merge ruma-events into ruma-common
2022-03-04 11:45:07 +00:00
Kévin Commaille
f2dca60fc7
macros: Rename ruma-events-macros to ruma-macros
2022-02-27 13:54:17 +01:00
Kévin Commaille
771f437d9e
events: Rename MessageEvent to MessageLikeEvent
2022-02-22 20:06:36 +01:00
Jonas Platte
52608cc72c
identifiers: Make EventId a DST
2021-11-25 22:34:40 +01:00
Jonas Platte
edbd5a696c
events: Use inline code blocks instead of emphasis for type strings
2021-10-01 18:35:01 +02:00
Jonas Platte
120f1f3b2a
events: Generate event type aliases
2021-09-30 00:47:13 +02:00
Häcker Felix
653e4c4838
events: Add missing serde rename for Relation emoji
2021-06-27 21:45:46 +02:00
Jonas Platte
ec4b719546
events: Refactor message relations
...
* Discard unknown relations
* Move new_content into Relation::Replacement
2021-06-17 19:43:23 +02:00
Jonas Platte
e3084b1f91
events: Clean up reaction event
2021-06-17 19:43:23 +02:00
Jonas Platte
62b68966b7
events: Remove accidental duplicate constructor
2021-05-17 00:03:42 +02:00
Jonas Platte
76c9c56471
events: Make more types non-exhaustive
2021-05-16 23:47:38 +02:00
Devin Ragotzy
8252a1a32c
Move all content declarations to content trait attribute
2021-05-14 12:25:30 +02:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory
2021-05-03 15:50:27 +02:00