federation-api: Support MSC3618
This commit is contained in:
parent
7eb83f6b7a
commit
3b32577276
@ -48,6 +48,8 @@ ruma_api! {
|
|||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
response: {
|
response: {
|
||||||
/// Map of event IDs and response for each PDU given in the request.
|
/// Map of event IDs and response for each PDU given in the request.
|
||||||
|
// https://github.com/matrix-org/matrix-doc/pull/3618 makes returning `pdus` optional.
|
||||||
|
#[cfg_attr(feature = "unstable-pre-spec", serde(default))]
|
||||||
#[serde(with = "crate::serde::pdu_process_response")]
|
#[serde(with = "crate::serde::pdu_process_response")]
|
||||||
pub pdus: BTreeMap<Box<EventId>, Result<(), String>>,
|
pub pdus: BTreeMap<Box<EventId>, Result<(), String>>,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user