Make avatar_url in set_avatar_url request optional
This commit is contained in:
parent
fa8a45ed9f
commit
9e198132d0
@ -1,18 +1,22 @@
|
|||||||
# [unreleased]
|
# [unreleased]
|
||||||
|
|
||||||
|
Breaking changes:
|
||||||
|
|
||||||
|
* Make `avatar_url` in `r0::profile::set_avatar_url::Request` an `Option`
|
||||||
|
|
||||||
# 0.9.0
|
# 0.9.0
|
||||||
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
|
|
||||||
* Fix (de)serialization for `r0::media::get_content_thumnail::Response`
|
* Fix (de)serialization for `r0::media::get_content_thumnail::Response`
|
||||||
* Make `r0::device::get_devices::Response::devices` public
|
* Make `r0::device::get_devices::Response::devices` public
|
||||||
* Change `r0::device::Device` fields according to the spec
|
|
||||||
|
|
||||||
Breaking changes:
|
Breaking changes:
|
||||||
|
|
||||||
* The `event_id` in the response for the message and state sending endpoints is now required
|
* 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
|
* 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
|
* Updated the type of `r0::sync::sync_events::DeviceLists` fields
|
||||||
|
* Change `r0::device::Device` fields according to the spec
|
||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
@ -19,7 +19,9 @@ ruma_api! {
|
|||||||
pub user_id: UserId,
|
pub user_id: UserId,
|
||||||
|
|
||||||
/// The new avatar URL for the user.
|
/// The new avatar URL for the user.
|
||||||
pub avatar_url: String,
|
///
|
||||||
|
/// `None` is used to unset the avatar.
|
||||||
|
pub avatar_url: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
response {}
|
response {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user