Jonas Platte
09ac2404de
Add a test for sync_events::Request serialization
2020-04-03 11:56:49 +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
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
iinuwa
122097cfef
Use Duration over UInt for timeouts and similar fields
2020-03-20 11:29:51 +01: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
26d7e2f04d
Limit events
in sync_events::Presence
to PresenceEvent
s
2019-12-31 17:09:15 +01:00
iinuwa
301d38c104
Refactor send and sync modules
...
This commit moves the message, member and state event endpoints from the
send and sync modules to make interaction with those events more
consistent with how other events are used, for example,
`r0::<event type>::<create, get, update, delete>_event`.
2019-12-26 15:44:45 +01:00
Jonas Platte
e30c82d248
Update ruma-api, restore request receiving / response sending support
2019-11-28 22:03:17 +01:00
Aaron DeVore
886715b886
Add filter optional query param to /messages (r0.3.0 compatibility)
2019-11-23 12:03:55 +01:00
Jonas Platte
d140eff324
Fix wrong parameter type in get_message_events
2019-11-11 22:55:37 +01:00
Jonas Platte
134738f676
Remove stuff only needed for server-side usage
2019-10-17 00:41:18 +02:00
Jonas Platte
98e0bad1b1
Update to the new ruma-events API
2019-08-15 23:25:01 +02:00
Jonas Platte
05f181d9f1
Make serde_json::Value usage consistent
2019-08-09 00:36:56 +02:00
Jonas Platte
11eba71083
Remove remaining unused imports
2019-08-04 17:43:14 +02:00
Jonas Platte
90b850a60d
Update dependencies (except ruma-events)
2019-08-03 19:43:09 +02:00
Jimmy Cuadra
e7e4d04244
Undo the change of storing FilterDefinition in a box.
...
On second thought, it doesn't make sense to change this just cause of a
clippy warning. We'll wait and see if it ever causes and real problems
before making the API less consistent just to avoid a potential space
saving issue.
2019-07-08 14:24:07 -07:00
Jimmy Cuadra
a16eb7cfe1
Use js_int types for numbers.
...
See https://github.com/ruma/ruma-events/issues/27 for rationale.
2019-06-16 16:32:56 -07:00
Jimmy Cuadra
4a4c2dd025
Add rustfmt and clippy to CI and address clippy warnings.
2019-06-02 18:14:37 -07:00
Jimmy Cuadra
8f1d4a4d21
Update all spec links to the r0.4.0 version.
2019-05-01 20:46:57 -07:00
Jonas Platte
af8fe42259
Update link in get_member_events doc comment
...
no code changes were necessary even though the spec was updated: we
already specified requires_authentication: true when the spec was
missing that information.
2019-04-22 22:33:37 +02:00
Jonas Platte
af954220bd
Replace serde_derive by re-exports in serde
2019-02-06 20:36:39 +01:00
Jonas Platte
71f6a93d76
r0::sync::sync_events: Fix (de)serialization of filter argument
2019-02-02 22:11:59 +01:00
Alejandro Domínguez
d48fc54c96
Use folders instead of mods
2019-01-22 18:41:41 +01:00