diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c9ce527..ea4ca735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Breaking changes: Improvements: * Add types for User-Interactive Authentication API: `r0::account::{UserInteractiveAuthenticationInfo, AuthenticationFlow}` +* Add missing serde attributes to `get_content_thumbnail` query parameters # 0.7.2 diff --git a/src/r0/media/get_content_thumbnail.rs b/src/r0/media/get_content_thumbnail.rs index 567631d9..a6d9a127 100644 --- a/src/r0/media/get_content_thumbnail.rs +++ b/src/r0/media/get_content_thumbnail.rs @@ -29,6 +29,7 @@ ruma_api! { /// /// Used to prevent routing loops. Defaults to `true`. #[ruma_api(query)] + #[serde(skip_serializing_if = "Option::is_none")] pub allow_remote: Option, /// The media ID from the mxc:// URI (the path component). #[ruma_api(path)] @@ -42,6 +43,7 @@ ruma_api! { pub height: UInt, /// The desired resizing method. #[ruma_api(query)] + #[serde(skip_serializing_if = "Option::is_none")] pub method: Option, /// The *desired* width of the thumbnail. The actual thumbnail may not match the size /// specified.