From 3da855c56ecbeaea8a717d6fdacf49817255d3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Br=C3=B6nnimann?= Date: Sun, 15 Jan 2017 16:05:40 +0100 Subject: [PATCH] The member event response contains the field chunk, not chunks --- src/r0/sync.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r0/sync.rs b/src/r0/sync.rs index 1408ca42..16a5e925 100644 --- a/src/r0/sync.rs +++ b/src/r0/sync.rs @@ -184,7 +184,7 @@ pub mod get_member_events { /// This API endpoint's reponse. #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Response { - pub chunks: Vec + pub chunk: Vec } impl ::Endpoint for Endpoint { @@ -268,7 +268,7 @@ pub mod get_message_events { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Response { pub start: String, - pub chunks: Vec, + pub chunk: Vec, pub end: String }