Jonas Platte
dbc8312730
Add PDU type for v3 rooms and above
2020-04-01 21:30:15 +02:00
Akshay
8915339e56
Rewrite tests to use serde_json::json!
instead of raw strings
2020-03-31 16:07:09 +02:00
Jonas Platte
575001de13
Bump version
2020-03-30 20:13:14 +02:00
timokoesters
6310f97ad2
update dependencies
2020-03-30 16:28:06 +02:00
Jonas Platte
ea9b752da9
Reorder sections in change log
2020-03-29 19:44:14 +02:00
Jonas Platte
e2ba8f2d4a
Bump version
2020-03-29 19:28:57 +02:00
Jonas Platte
472ab64a86
Update dependencies
2020-03-29 19:28:28 +02:00
Isaiah Inuwa
67257e15e8
Remove stray TODO comment
2020-03-29 18:58:31 +02:00
Jonas Platte
78744a3a98
Further refine the sync endpoint's types
2020-03-29 18:55:24 +02:00
Isaiah Inuwa
e607587a67
Format code
2020-03-29 18:51:44 +02:00
Isaiah Inuwa
2cced78edf
Update sync endpoint
2020-03-29 18:51:44 +02:00
Jonas Platte
8effddb5ec
Bump versions
2020-03-29 17:07:56 +02:00
Jonas Platte
23655d9cad
Bump dependencies
2020-03-29 17:07:04 +02:00
Jonas Platte
fc7c34c00d
Update change log
2020-03-29 16:59:51 +02:00
Jonas Platte
cba7b161e9
Update unsigned field's type from Option<Value>
to Map<String, Value>
...
* it's guaranteed to always be an object
* `Option` isn't needed because the distinction empty object / missing
field is not of interest
2020-03-29 15:37:57 +02:00
Jonas Platte
53f76992e5
Update change logs
2020-03-29 14:25:44 +02:00
Jonas Platte
b389501465
Bump versions
2020-03-29 13:55:54 +02:00
Jonas Platte
58b142f345
Update change logs
2020-03-29 13:55:16 +02:00
Akshay
f09ab98f17
Remove manual Serialize impl, use derive macro instead
2020-03-29 13:41:42 +02:00
Akshay
57f5e8d661
Add missing query parameters to members list endpoint
2020-03-27 16:40:40 +01:00
Akshay
ea94bab93e
Remove outdated comment
2020-03-27 15:24:04 +01:00
Ragotzy.devin
8ea971b082
Derive Serialize in ruma_events!
, use json EventType string for event_type
field
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2020-03-24 14:25:50 +01:00
Ragotzy.devin
14df832005
Remove special handling of custom events
2020-03-24 11:31:47 +01:00
Jonas Platte
5a79b766c7
Revert "Remove special handling of custom events"
...
This reverts commit 539dd5f31dff172b5d6559378e33982d0a0c3333.
2020-03-24 11:31:36 +01:00
Ragotzy.devin
539dd5f31d
Remove special handling of custom events
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2020-03-24 11:27:55 +01:00
Ragotzy.devin
2a11207a9d
Add dummy event to to-device collection
2020-03-22 03:57:42 +01:00
Ragotzy.devin
1e3769a0f1
impl EndpointError for Error
...
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
2020-03-22 03:08:08 +01:00
Jonas Platte
9be124f826
Bump versions
2020-03-20 11:51:45 +01:00
Jonas Platte
220d733cc1
Bump dependencies
2020-03-20 11:50:13 +01:00
iinuwa
122097cfef
Use Duration over UInt for timeouts and similar fields
2020-03-20 11:29:51 +01:00
Jonas Platte
0c6dd0ba32
Simplify proc_macro tests
...
… by moving them from ruma-events-macros to ruma-events and updating the
macros to work in different contexts (without items like FromRaw being
available at the calling crate's root)
2020-03-17 13:10:40 +01:00
Ragotzy.devin
6a0ab987b5
Enable deserialization of unsuccessful responses
...
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
2020-03-17 01:07:12 +01:00
Jonas Platte
016659a99c
Split impl FromRaw
generation into its own macro
2020-03-16 23:27:32 +01:00
Jonas Platte
0efe82bf88
Move FromRaw, TryFromRaw into a new module
2020-03-16 22:48:21 +01:00
Jonas Platte
ddbb06f21d
Clean up code gen a bit
2020-03-16 21:22:56 +01:00
Jonas Platte
8a9bbb8c83
Don't deny(warnings)
2020-03-16 21:13:44 +01:00
Jonas Platte
5b15fe8a40
Remove unused imports
2020-03-16 20:56:59 +01:00
Jonas Platte
8f95d6f7cf
Update change log
2020-03-16 20:03:41 +01:00
Will Hakes
fc2d646dd3
Add new_plain
constructor for TextMessageEventContent
2020-03-16 12:48:50 -06:00
Damir Jelić
7307c695e0
sync_events: Parse the to-device events.
2020-03-13 16:53:02 +01:00
Jonas Platte
e7526b88cb
Update ruma-events to 0.17.0
2020-03-12 21:38:51 +01:00
Jonas Platte
6f5e25cb7d
Update dependencies
2020-03-12 21:38:27 +01:00
Jonas Platte
94d9fc0a86
Bump the version to 0.17.0
2020-03-12 21:12:33 +01:00
Jonas Platte
53b27de6cd
Update changelog
2020-03-12 21:11:25 +01:00
Jonas Platte
8fb0c9a160
Rename stripped::{StrippedState => AnyStrippedStateEvent, StrippedStateContent => StrippedStateEvent}
2020-03-12 21:07:50 +01:00
Jonas Platte
fdef9a12e6
Rename to_device::ToDevice to AnyToDeviceEvent
2020-03-12 21:02:04 +01:00
Donough Liu
7920445832
Implement helper method and more tests for MemberEvent
2020-03-12 20:45:51 +01:00
Donough Liu
e60e502183
More tests for ruma-events-macros
2020-03-11 21:47:56 +08:00
poljar
12d725113b
Implement a collection for to-device events
...
To-device events are received in a sync response in a separate field of
the response.
They are sent between dirrectly without involving a room and are not
permanently stored on the serever. They are mostly used to set up
encryption between devices.
This patch implements a enum which encapsulates many of the messages
that will appear in the to-device part of a sync response.
2020-03-11 13:01:37 +01:00
Jonas Platte
dce5ae5c39
Update serde tests
...
* macro => function
* json string => serde_json::Value
2020-03-11 12:55:37 +01:00