The member event response contains the field chunk, not chunks

This commit is contained in:
Andreas Brönnimann 2017-01-15 16:05:40 +01:00
parent edeb14fb29
commit 3da855c56e

View File

@ -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<MemberEvent>
pub chunk: Vec<MemberEvent>
}
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<only::RoomEvent>,
pub chunk: Vec<only::RoomEvent>,
pub end: String
}