client-api: Update type of get_member_events::Response::chunk

This commit is contained in:
Jonas Platte 2022-04-21 17:26:16 +02:00 committed by Jonas Platte
parent a5f1c9145c
commit aa2c152aa2

View File

@ -7,7 +7,7 @@ pub mod v3 {
use ruma_common::{ use ruma_common::{
api::ruma_api, api::ruma_api,
events::room::member::OriginalRoomMemberEvent, events::room::member::RoomMemberEvent,
serde::{Raw, StringEnum}, serde::{Raw, StringEnum},
RoomId, RoomId,
}; };
@ -58,7 +58,7 @@ pub mod v3 {
response: { response: {
/// A list of member events. /// A list of member events.
pub chunk: Vec<Raw<OriginalRoomMemberEvent>>, pub chunk: Vec<Raw<RoomMemberEvent>>,
} }
error: crate::Error error: crate::Error
@ -73,7 +73,7 @@ pub mod v3 {
impl Response { impl Response {
/// Creates a new `Response` with the given member event chunk. /// Creates a new `Response` with the given member event chunk.
pub fn new(chunk: Vec<Raw<OriginalRoomMemberEvent>>) -> Self { pub fn new(chunk: Vec<Raw<RoomMemberEvent>>) -> Self {
Self { chunk } Self { chunk }
} }
} }