Add #[ruma_api(body)] attr to get_room_event endpoint

This commit is contained in:
Ragotzy.devin 2020-06-27 16:26:20 -04:00 committed by GitHub
parent 202af7a523
commit 87fb2c1e00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
Bug fixes:
* Fix deserialization of `r0::room::get_room_event::Response`
* More missing fields in `r0::sync::sync_events::Response` can be deserialized
Breaking changes:

View File

@ -26,6 +26,7 @@ ruma_api! {
response {
/// Arbitrary JSON of the event body. Returns both room and state events.
#[ruma_api(body)]
pub event: EventJson<AnyRoomEvent>,
}