Merge pull request #16 from exul/fix-chunks-to-chunk
The member event response contains the field chunk, not chunks
This commit is contained in:
commit
52f027d655
@ -184,7 +184,7 @@ pub mod get_member_events {
|
|||||||
/// This API endpoint's reponse.
|
/// This API endpoint's reponse.
|
||||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||||
pub struct Response {
|
pub struct Response {
|
||||||
pub chunks: Vec<MemberEvent>
|
pub chunk: Vec<MemberEvent>
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ::Endpoint for Endpoint {
|
impl ::Endpoint for Endpoint {
|
||||||
@ -268,7 +268,7 @@ pub mod get_message_events {
|
|||||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||||
pub struct Response {
|
pub struct Response {
|
||||||
pub start: String,
|
pub start: String,
|
||||||
pub chunks: Vec<only::RoomEvent>,
|
pub chunk: Vec<only::RoomEvent>,
|
||||||
pub end: String
|
pub end: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user