federation-api: Wrap events jn get_missing_events in Raw
use js_int::{uint, UInt};
use ruma_api::ruma_api;
+use ruma_common::Raw;
use ruma_events::pdu::Pdu;
use ruma_identifiers::{EventId, RoomId};
@@ -38,7 +39,7 @@ ruma_api! {
#[derive(Default)]
response: {
/// The missing PDUs.
- pub events: Vec<Pdu>
+ pub events: Vec<Raw<Pdu>>
}
}
@@ -61,7 +62,7 @@ impl<'a> Request<'a> {
impl Response {
/// Creates a new `Response` with the given events.
- pub fn new(events: Vec<Pdu>) -> Self {
+ pub fn new(events: Vec<Raw<Pdu>>) -> Self {
Self { events }
}
}
