30 Commits

Author SHA1 Message Date
Jonas Platte
a3e5d679a1
Revert making identifier types generic over the underlying string type
At the same time, this commit makes `ServerName` a newtype around str so
other identifier types can borrow out their server name part as a
`&ServerName`. This technique works for `ServerName` because it keeps no
additional metadata. For the other identifier types to support being
created in borrowed form from a string slice, custom DSTs first have to
be added to Rust.
2020-07-14 23:02:51 +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
skim
7b909efccc
update type of limited in r0::sync::sync_events::Timeline from Option<bool> to bool 2020-07-13 14:35:27 -07:00
gnieto
6fd4b9b8b0
Properly serialize get_tags Response
`get_tags` route response was adding the `tags` property twice, which is
not the expected behaviour. This is an example of the previous
serialization of the `get_tags` route:

`{"tags":{"tags":{"u.example":{"order":0.55},"u.another":{"order":0.11}}}}`

The new serialization removes the outer `tags` property.
2020-07-05 13:20:47 +02:00
Jonas Platte
9ecc7c11cf
Add a constructor for get_message_events::Request 2020-07-03 22:06:47 +02:00
Jonas Platte
ba95fd6c4e
Add a constructor for create_room::Request 2020-07-03 22:03:15 +02:00
Ragotzy.devin
5376a3fc6e
Add colons to ruma_api! macro after each keyword 2020-06-30 13:06:37 +02:00
Ragotzy.devin
87fb2c1e00
Add #[ruma_api(body)] attr to get_room_event endpoint 2020-06-27 22:26:20 +02:00
Ragotzy.devin
928fe6ce26
Add AnyEphemeralRoomEventStub and use it in sync response 2020-06-25 13:19:39 +02:00
Philippe Laflamme
567cfea7ac
Use UserId instead of string in r0::account::whoami 2020-06-24 16:19:25 +02:00
Jonas Platte
034a9b6926
Use js_int::uint macro for UInt constants 2020-06-19 23:00:57 +02:00
Jonas Platte
c621f220b9
Bump dependency versions 2020-06-19 22:53:07 +02:00
Jonas Platte
f9639e110e
client-api: Add constructors for the types in unversioned 2020-06-18 21:33:22 +02:00
Alan Darmasaputra
4abcc4c0bd
Change get_message_events Request limit field from Option<UInt> to UInt 2020-06-18 17:18:17 +02:00
Jonas Platte
418f92153d
ruma-client-api: Re-add r0::push::Action as deprecated, update change log 2020-06-15 19:21:04 +02:00
Jonas Platte
1d954f3089
Deprecate / remove re-exports from ruma_common 2020-06-15 19:20:34 +02:00
Jonas Platte
83d8f8c43e
Move some types from ruma_events::push_rules to ruma_common::push 2020-06-15 19:05:17 +02:00
Isaiah Inuwa
9074e4c17a Update event creation endpoints to r0.6.1 2020-06-14 20:35:44 -05:00
Jonas Platte
43ae129ce2
Add a test to get_member_events 2020-06-14 01:09:52 +02:00
Devin R
a6feed7dcb Convert Timeline's events field AnyRoomEvent -> AnyRoomEventStub 2020-06-12 22:31:56 +02:00
Devin R
a4dd53ef98 Use AnyStateEventStub for /sync response state events 2020-06-12 01:42:24 +02:00
Jonas Platte
9f93d20a34
Add back temporarily commented-out modules 2020-06-11 22:30:58 +02:00
Jonas Platte
0a788c1273
Integrate ruma-events 2020-06-10 22:20:41 +02:00
Jonas Platte
29a6c94a4f
Remove all but the toplevel .gitignore 2020-06-07 18:53:53 +02:00
Jonas Platte
7a6264e0ff
Integrate ruma-identifiers 2020-06-07 17:26:33 +02:00
Timo Kösters
acff664671
Optimize /sync response 2020-06-07 12:08:25 +02:00
Jonas Platte
50b74e2b76
Rerun cargo fmt 2020-06-05 17:17:35 +02:00
Jonas Platte
1df77c2c19
Integrate ruma-client-api 2020-06-05 17:16:53 +02:00
Jonas Platte
6329cd471e Add 'ruma-client-api/' from commit '632eb9d520028816c5fb7224bd0aca8d1e3793f1'
git-subtree-dir: ruma-client-api
git-subtree-mainline: e5233c49f610f866e3c9bf8529a0613171fc2fe4
git-subtree-split: 632eb9d520028816c5fb7224bd0aca8d1e3793f1
2020-06-05 17:11:09 +02:00