From 07e079bb8decd4b41a26013d23855c34aee83cb7 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Sat, 8 Sep 2018 13:25:16 +0200 Subject: [PATCH 1/3] get_subscribed_presences::Response::presence_events should be public --- src/r0/presence.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r0/presence.rs b/src/r0/presence.rs index 7d961e5e..c9d03344 100644 --- a/src/r0/presence.rs +++ b/src/r0/presence.rs @@ -127,7 +127,7 @@ pub mod get_subscribed_presences { response { /// A list of presence events for every user on this list. #[ruma_api(body)] - presence_events: Vec, + pub presence_events: Vec, } } } From ec8198964a821f3c092823152ad931bfd9bdc132 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Tue, 11 Sep 2018 14:10:31 +0200 Subject: [PATCH 2/3] get_state_events_for_key::Request::event_type should be of type EventType --- src/r0/sync.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/r0/sync.rs b/src/r0/sync.rs index 975141ba..1952d55d 100644 --- a/src/r0/sync.rs +++ b/src/r0/sync.rs @@ -68,6 +68,7 @@ pub mod get_state_events_for_empty_key { /// [GET /_matrix/client/r0/rooms/{roomId}/state/{eventType}/{stateKey}](https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-rooms-roomid-state-eventtype-state-key) pub mod get_state_events_for_key { use ruma_api_macros::ruma_api; + use ruma_events::EventType; use ruma_identifiers::RoomId; ruma_api! { @@ -86,7 +87,7 @@ pub mod get_state_events_for_key { pub room_id: RoomId, /// The type of state to look up. #[ruma_api(path)] - pub event_type: String, + pub event_type: EventType, /// The key of the state to look up. #[ruma_api(path)] pub state_key: String, From eb6f2518efda9bc3b274efb02577a344e7bfd4a4 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Tue, 11 Sep 2018 14:12:11 +0200 Subject: [PATCH 3/3] get_supported_versions does not require authentication --- src/unversioned.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unversioned.rs b/src/unversioned.rs index 7c4be014..cb152fb0 100644 --- a/src/unversioned.rs +++ b/src/unversioned.rs @@ -11,7 +11,7 @@ pub mod get_supported_versions { name: "api_versions", path: "/_matrix/client/versions", rate_limited: false, - requires_authentication: true, + requires_authentication: false, } request {}