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::{
api::ruma_api,
events::room::member::OriginalRoomMemberEvent,
events::room::member::RoomMemberEvent,
serde::{Raw, StringEnum},
RoomId,
};
@ -58,7 +58,7 @@ pub mod v3 {
response: {
/// A list of member events.
pub chunk: Vec<Raw<OriginalRoomMemberEvent>>,
pub chunk: Vec<Raw<RoomMemberEvent>>,
}
error: crate::Error
@ -73,7 +73,7 @@ pub mod v3 {
impl Response {
/// 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 }
}
}