client-api: Update type of get_member_events::Response::chunk
This commit is contained in:
parent
a5f1c9145c
commit
aa2c152aa2
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user