diff --git a/ruma-client-api/src/r0/profile/set_avatar_url.rs b/ruma-client-api/src/r0/profile/set_avatar_url.rs index ea40a5c8..9fd7dcfa 100644 --- a/ruma-client-api/src/r0/profile/set_avatar_url.rs +++ b/ruma-client-api/src/r0/profile/set_avatar_url.rs @@ -21,6 +21,7 @@ ruma_api! { /// The new avatar URL for the user. /// /// `None` is used to unset the avatar. + #[serde(skip_serializing_if = "Option::is_none")] pub avatar_url: Option<&'a str>, }