22 Commits

Author SHA1 Message Date
Jonas Platte
fd15dcda9f
events-macros: Get rid of lots of unwrapping 2021-10-07 00:13:57 +02:00
Jonas Platte
9103ad74bb
events-macros: Reorganize event impl generation 2021-10-07 00:07:15 +02:00
Jonas Platte
0a679816a9
events-macros: Pass EventKind and EventKindVariation by value 2021-10-06 22:08:11 +02:00
Jonas Platte
04080085f9
events: Include all event type segments in Rust type names 2021-10-02 21:25:21 +02:00
Jonas Platte
0890c3c37c
events: Skip serialization of all None event fields
… not just prev_content.
2021-10-02 14:17:36 +02:00
Jonas Platte
c807f9f43d
events: Add redacted redaction event types 2021-10-02 13:48:22 +02:00
Jonas Platte
e41abbb56b
events: Implement Redact for event structs
… it was only implemented for the enums before.
2021-10-02 01:19:36 +02:00
Jonas Platte
2536fdbe54
events-macros: Get rid of duplicate helper functions 2021-10-01 20:16:23 +02:00
Jonas Platte
651741f482
events-macros: Fix unqualified usage of From 2021-10-01 20:12:49 +02:00
Jonas Platte
bb9f95224c
events: Remove RedactedStrippedStateEvent
Stripped state events are never redacted.
2021-09-15 20:36:20 +02:00
Jonas Platte
46c7e3f811
Clean up and rewrap documentation comments 2021-08-27 21:32:02 +02:00
Jonas Platte
b84cc8d905
events-macros: Refactor expand_event 2021-08-17 12:39:16 +02:00
Jonas Platte
098339056b
events: Add a compat workaround for prev_content in unsigned 2021-08-16 22:55:27 +02:00
Jonas Platte
c24890f82b
events: Refactor Event derive 2021-08-13 00:16:31 +02:00
Jonas Platte
05e28f7422
events: Add types for decrypted event payloads 2021-06-20 09:39:48 +02:00
Jonas Platte
e622803679
Use bool::then to simplify some code 2021-06-17 19:43:22 +02:00
Jonas Platte
0ea3fee8a0
events: Remove elaborate no-op 2021-05-20 20:57:52 +02:00
Jonas Platte
37899db3c5
events: Borrow raw JSON in EventContent::from_parts 2021-05-15 15:02:27 +02:00
Jonas Platte
18005244c9
events: Merge RedactedSyncUnsigned and RedactedUnsigned 2021-05-15 13:12:13 +02:00
Jonas Platte
5710d2740c
Replace uses of SystemTime with new UInt-based timestamp types 2021-05-14 01:13:17 +02:00
Devin Ragotzy
c6aa2e0428 Fix clippy warnings across workspace 2021-05-06 06:16:28 -04:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory 2021-05-03 15:50:27 +02:00