events: Don't serialize event_type inside content for unsupported events
This commit is contained in:
parent
18127be03c
commit
f3e52e4bc3
@ -404,7 +404,10 @@ fn expand_content_enum(
|
|||||||
#variant_decls(#content),
|
#variant_decls(#content),
|
||||||
)*
|
)*
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
_Custom { event_type: ::std::string::String },
|
_Custom {
|
||||||
|
#[serde(skip)]
|
||||||
|
event_type: ::std::string::String,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -466,7 +469,10 @@ fn expand_content_enum(
|
|||||||
#variant_decls(#redacted_content),
|
#variant_decls(#redacted_content),
|
||||||
)*
|
)*
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
_Custom { event_type: ::std::string::String },
|
_Custom {
|
||||||
|
#[serde(skip)]
|
||||||
|
event_type: ::std::string::String,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
impl #ruma_events::RedactContent for #ident {
|
impl #ruma_events::RedactContent for #ident {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user