Jonas Platte
486c9245b3
events: Make ImageInfo and ThumbnailInfo non-exhaustive
2021-04-18 14:44:37 +02:00
Kévin Commaille
9cf44a4475
events: Fix test error with unstable-pre-spec feature flag
2021-04-12 12:54:48 +02:00
Kévin Commaille
c6ab610451
events: Replace String with MxcUri for media URLs
2021-04-05 08:10:21 +02:00
Adam Blanchet
2e422c5d81
Create ImageInfo struct specific to AvatarEventContent
...
Add a new specific ImageInfo struct, with all the same fields,
except for `thumbnail_file`, to disallow encrypted room avatars.
Resolves : #397
2021-03-31 11:00:36 +02:00
David Vo
1a4e9aa20a
Implement MSC2448: BlurHashes for media
...
This exposes the pre-FCP unstable prefixed fields in MSC2448.
2020-12-07 13:01:15 +01:00
Jonas Platte
5562a23aaa
Move Raw, Outgoing and all macro code from ruma-common to ruma-serde
2020-11-28 03:45:39 +01:00
Jonas Platte
1dee89393a
events: Fix recently broken tests
2020-11-24 03:24:58 +01:00
Jonas Platte
0f64a6ea39
Fix new clippy warnings
2020-11-10 16:48:35 +01:00
Jonas Platte
9bc6ce9201
Use identifier macros for tests
2020-08-05 00:12:44 +02:00
Devin Ragotzy
4be63127f7
Add into_full_event and From<> impls to convert between sync and full events
2020-07-24 14:45:38 +02:00
Jonas Platte
c9c56c3404
Mark AvatarEventContent as non_exhaustive
2020-07-17 01:07:15 +02:00
skim
b260a13d4b
move and rename ruma_events::json::EventJson to ruma_common::raw::Raw
2020-07-16 07:31:36 -07:00
Ragotzy.devin
e7d9fb785d
Split UnsignedData into multiple types
...
* Rename UnsignedData -> Unsigned
* Add RedacedUnsigned and RedactedSyncUnsigned
2020-07-16 02:34:36 +02:00
Jonas Platte
8683901e14
Don't to_string() string literals
2020-07-14 22:11:05 +02:00
Devin R
204a90ac43
Rename *EventStub -> Sync*Event
2020-07-14 13:44:39 -04:00
Ragotzy.devin
184aafa5f6
Revert " Remove event_enum! and only use event_content_enum"
...
This reverts commit 2a91dc1eb7215a762bd2204bc103ef172258d2d9. Also
* Add back type defs and Any*Event enums
* Move EventDeHelper and from_raw_json_value to lib make pub so event_enum! macro can use them and test.
* Fix Any*Event enum deserialization error
* Remove event_content_enum! macro and ruma-events-macros/src/content_enum.rs
* Use serde's IgnoreAny to skip Unknown field's value
* Clean up imports and test names for state_event
2020-06-19 11:36:53 +02:00
Ragotzy.devin
f4665761be
Fix failing deserialization when encountering an unknown field
2020-06-16 00:34:58 +02:00
Jonas Platte
f304c04d1d
Add 'ruma-events/' from commit '00692d532e26f58d48ead9589dc823403c6e59a5'
...
git-subtree-dir: ruma-events
git-subtree-mainline: d59a616e2c363507a89c92f34aa67e86ee2cfb49
git-subtree-split: 00692d532e26f58d48ead9589dc823403c6e59a5
2020-06-10 22:07:24 +02:00