1709 Commits

Author SHA1 Message Date
Jonas Platte
2bb96b5a2b
Use serde_json::value::RawValue instead of serde_json::Value in most endpoints 2020-05-05 22:51:46 +02:00
Jonas Platte
b10e5e9ed1
Add get_media_preview module declaration 2020-05-05 22:51:16 +02:00
Damir Jelić
7d80a7f23d sync_events: Make all fields in the response optional except next_batch.
As per spec only the next_batch token is required in a sync response.

This patch makes all of them optional and creates default values when
parsing a response. Serialization is skipped for all of them if they are
empty containers.
2020-05-05 15:31:24 +02:00
Damir Jelić
5cedf1a963 keys: Make the device display name optional. 2020-05-05 15:31:24 +02:00
poljar
56f2054df5
to_device: Use a RawValue for sending to-device messages 2020-05-05 11:55:41 +02:00
Jonas Platte
fc626d0869
Whitespace and comment wrapping adjustments 2020-05-05 00:41:51 +02:00
Jonas Platte
3db0abe4cc
Update change log 2020-05-05 00:16:48 +02:00
Jonas Platte
ae8a629823
Remove dependency on the url crate 2020-05-05 00:16:43 +02:00
Jonas Platte
1ca24515ad
Update remaining r0.4.0 modules to r0.6.0 2020-05-05 00:11:04 +02:00
Jonas Platte
4eb72e4cf0
Remove tests for ruma_common types, they now live in that crate 2020-05-04 23:09:10 +02:00
Jonas Platte
97255eff60
Import push::Action tests from ruma-events 2020-05-04 22:59:32 +02:00
Jonas Platte
cb413ff358
Normalize derive order in room_key_requests 2020-05-04 22:10:51 +02:00
Jonas Platte
e759c3821e
Bump version 2020-05-04 18:55:34 +02:00
Jonas Platte
ebd4af10c5
Update join_room_by_id_or_alias 2020-05-04 18:43:51 +02:00
Jonas Platte
e5adfe1181
Rename r0::{client_exchange => to_device} 2020-05-04 18:42:37 +02:00
Jonas Platte
f2c8a7b5df
Update dependencies 2020-05-04 18:41:14 +02:00
Jonas Platte
d99812364f
Silence clippy warning 2020-05-04 18:38:15 +02:00
Jonas Platte
b809db81f4
Update create_message_event, create_state_event_* 2020-05-04 18:34:52 +02:00
Jonas Platte
78717b71bf
Update change log 2020-05-04 18:24:16 +02:00
Jonas Platte
d560ed76ca
Bump versions 2020-05-04 18:16:53 +02:00
Jonas Platte
4211eb4497
Annotate .unwrap()s 2020-05-04 18:14:55 +02:00
Jonas Platte
fb265db5eb
Update dependencies 2020-05-04 18:14:50 +02:00
Akshay
3428e9dd92
Migrate to ruma-serde from serde_urlencoded 2020-05-04 17:46:24 +02:00
Jonas Platte
c2e3298b2a
Fix duplicate msgtype field in m.message serialization 2020-05-03 23:11:34 +02:00
Jonas Platte
f30df65dba
Bump version 2020-05-03 01:00:39 +02:00
Jonas Platte
e59aeb97b4
Update change log 2020-05-03 01:00:25 +02:00
Jonas Platte
62772f4c7f
Bump macro dependency versions 2020-05-03 01:00:07 +02:00
Jonas Platte
0b26d71537
Re-run cargo fmt 2020-05-02 23:36:03 +02:00
Jonas Platte
b29263fe85
Import-rename serde_json::Value to JsonValue 2020-05-02 23:33:47 +02:00
Jonas Platte
b8eafc3f59
Update room::message
* Derive Deserialize for raw::MessageEventContent
* Remove MessageType
2020-05-02 23:25:46 +02:00
Jonas Platte
2f706d9a85
Remove invalid variant from room::message::MessageEventContent 2020-05-02 23:12:50 +02:00
Jonas Platte
fc78e49d49
Update representation of encrypted event content 2020-05-02 22:54:42 +02:00
Jonas Platte
d47f1831a7
Remove pointless match 2020-05-02 22:52:07 +02:00
Jonas Platte
17faaaa56e
Bump MSRV to 1.40.0 2020-05-02 22:14:05 +02:00
Jonas Platte
14ba542ba1
Derive deserialize for key::verification::start::raw::StartEventContent 2020-05-02 22:11:27 +02:00
Jonas Platte
f65615075e
Update serde attrs for room::message::LimitType 2020-05-02 21:28:13 +02:00
Jonas Platte
51ad28081e
Use ruma_event! for room::server_acl 2020-05-02 21:25:02 +02:00
Jonas Platte
23204d7948
Use ruma_event for ignored_user_list 2020-05-02 21:19:06 +02:00
Jonas Platte
bc9b43e03f
Update dependencies, use push::Action from ruma-common 2020-05-02 18:52:16 +02:00
Jonas Platte
24f519ba29
Update serde attrs in room::guest_access 2020-05-02 18:49:12 +02:00
Jonas Platte
a3f377ec39
Use ruma_common::{Action, Tweak} 2020-05-02 14:17:10 +02:00
Jonas Platte
08418daeb2
Remove NotificationPowerLevels::is_default 2020-05-02 14:16:31 +02:00
Jonas Platte
ca5c65ef10
Revise trait implementations 2020-05-02 14:15:13 +02:00
Jonas Platte
a512df0321
Update key::verification::start tests 2020-05-02 14:08:49 +02:00
Jonas Platte
18a37efcac
Update room::name tests 2020-05-02 14:08:16 +02:00
Jonas Platte
d61b6c705c
Update ignored_user_list tests 2020-05-02 11:15:46 +02:00
Jonas Platte
f23d7414ec
Update json literal formatting 2020-05-02 11:10:31 +02:00
Jonas Platte
8e4ff82a83
Stop relying on PartialEq for tests 2020-05-02 00:17:41 +02:00
Jonas Platte
cf2747cc70
Fix HighlightTweak deserialization 2020-05-01 23:40:26 +02:00
Jonas Platte
25f302f491
Add is_true 2020-05-01 23:33:01 +02:00