Make avatar_url in set_avatar_url request optional

This commit is contained in:
Jonas Platte 2020-05-24 15:53:23 +02:00
parent fa8a45ed9f
commit 9e198132d0
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 8 additions and 2 deletions

View File

@ -1,18 +1,22 @@
# [unreleased]
Breaking changes:
* Make `avatar_url` in `r0::profile::set_avatar_url::Request` an `Option`
# 0.9.0
Bug fixes:
* Fix (de)serialization for `r0::media::get_content_thumnail::Response`
* Make `r0::device::get_devices::Response::devices` public
* Change `r0::device::Device` fields according to the spec
Breaking changes:
* The `event_id` in the response for the message and state sending endpoints is now required
* r0.6.0 doesn't say they are required, but this has been fixed for the next version of the spec
* Updated the type of `r0::sync::sync_events::DeviceLists` fields
* Change `r0::device::Device` fields according to the spec
Improvements:

View File

@ -19,7 +19,9 @@ ruma_api! {
pub user_id: UserId,
/// The new avatar URL for the user.
pub avatar_url: String,
///
/// `None` is used to unset the avatar.
pub avatar_url: Option<String>,
}
response {}