378 Commits

Author SHA1 Message Date
Jonas Platte
81c7849ae8
Update pinned version of ruma-events 2020-06-04 21:16:39 +02:00
Jonas Platte
5365ee3afe
Use PresenceState from ruma_common, deprecate SetPresence 2020-06-04 21:13:58 +02:00
Jonas Platte
9fb2c42f06
Update change log 2020-06-04 21:00:17 +02:00
Jonas Platte
eea1046366 Fix (de)serialization for filter in get_context 2020-06-04 13:59:12 +02:00
Jonas Platte
6214b3ac6e
Fix event types in get_context 2020-06-04 12:08:08 +02:00
Jonas Platte
6fcdeac896
Clarify search_users documentation based on the latest spec version 2020-06-01 01:35:28 +02:00
Jonas Platte
b7bdb4aa52
Update get_capabilites endpoint 2020-06-01 01:21:06 +02:00
Jonas Platte
a892d7f654
Update dependencies 2020-06-01 01:19:56 +02:00
Jonas Platte
584aab3979
Use ruma-events from git
so people using this crate from git don't have breakage in r0::push
2020-05-31 23:31:18 +02:00
Jonas Platte
da4abacf69
Use Ruleset type from ruma_events in get_pushrules endpoints 2020-05-31 23:24:37 +02:00
Jonas Platte
80726d0546
Use PushCondition from ruma_events instead of declaring a separate one 2020-05-31 23:23:52 +02:00
iinuwa
c725288cd0
Use RoomId instead of String for room visibility endpoints 2020-05-27 13:53:28 +02:00
iinuwa
b064daf23d
Add room visibility endpoints 2020-05-26 14:19:10 +02:00
Jonas Platte
429e5a5bbe
Update create_room::CreationContent 2020-05-26 10:12:35 +02:00
Jonas Platte
9643dbc27f
Update type of canonical_alias in PublicRoomsChunk 2020-05-26 09:54:25 +02:00
Jonas Platte
07689ecb8b
Use event_type enum in r0::room::create_room::InitialStateEvent 2020-05-24 15:54:22 +02:00
Jonas Platte
9e198132d0
Make avatar_url in set_avatar_url request optional 2020-05-24 15:53:23 +02:00
Jonas Platte
fa8a45ed9f
Update changelog, bump version 2020-05-22 17:59:30 +02:00
Guillem Nieto
866885bb38 Update changelog 2020-05-22 16:29:27 +02:00
Guillem Nieto
fe80737c58 Change Device fields according to the spec
Fields `ip` and `last_seen` should be named `last_seen_ip` and
`last_seen_ts` according to the spec.

https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-devices
2020-05-22 16:29:27 +02:00
Guillem Nieto
195bff8c05 Fix build
- Add required documentation to `devices` field
- Import `UserId` on `sync_events`
2020-05-22 15:12:49 +02:00
Jonas Platte
b5fa684dfc
Update sync_events::DeviceLists field types 2020-05-21 23:36:07 +02:00
Jonas Platte
6d93ec1d1a
Fix accidentally-private field 2020-05-21 23:29:56 +02:00
Timo Kösters
3a3ccabbf2
Fix get_content_thumbnail response 2020-05-19 18:45:38 +02:00
Jonas Platte
a42b335bfe
Update dependencies 2020-05-19 12:37:03 +02:00
Jonas Platte
89dcb5710b
Add another test for sync_events request deserialization 2020-05-17 18:54:35 +02:00
Jonas Platte
519ab3ff0a
Implement Display for r0::keys::AlgorithmAndDeviceId 2020-05-17 18:53:22 +02:00
Jonas Platte
62bf717e62
Update sync_events tests 2020-05-10 12:09:43 +02:00
Jonas Platte
c28645b945
Update change log 2020-05-07 14:43:29 +02:00
Jonas Platte
7a22bc7a45
Add comments to explain required event_id fields 2020-05-07 14:42:30 +02:00
Damir Jelić
e36e9a68ac message/state: The event id is required in the response when sending events. 2020-05-06 09:57:13 +02:00
Jonas Platte
ecb498be67
Bump version 2020-05-05 23:10:58 +02:00
Jonas Platte
55df111a97
Canonicalize spec links 2020-05-05 23:10:29 +02:00
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
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
b809db81f4
Update create_message_event, create_state_event_* 2020-05-04 18:34:52 +02:00
Jonas Platte
bc9b43e03f
Update dependencies, use push::Action from ruma-common 2020-05-02 18:52:16 +02:00
Jonas Platte
06f8374250
sync_events: make account_data optional 2020-05-01 13:52:49 +02:00
iinuwa
dbb60142cf
Sync endpoint touchups
* Add account_data to sync endpoint.
* Update RoomSummary not to serialize empty optional fields
2020-05-01 11:33:20 +02:00