client-api: Stabilize support for animated thumbnails
According to Matrix 1.11
This commit is contained in:
parent
3eb0248cf8
commit
ba76e0ee3a
@ -17,6 +17,7 @@ Improvements:
|
||||
- Add support for authenticated media endpoints, according to MSC3916 / Matrix
|
||||
1.11.
|
||||
- They replace the newly deprecated `media::get_*` endpoints.
|
||||
- Stabilize support for animated thumbnails, according to Matrix 1.11
|
||||
|
||||
Bug fixes:
|
||||
|
||||
|
@ -40,7 +40,6 @@ unstable-exhaustive-types = ["ruma-common/unstable-exhaustive-types"]
|
||||
unstable-msc2666 = []
|
||||
unstable-msc2448 = []
|
||||
unstable-msc2654 = []
|
||||
unstable-msc2705 = []
|
||||
unstable-msc2965 = []
|
||||
unstable-msc2967 = []
|
||||
unstable-msc3266 = []
|
||||
|
@ -70,18 +70,12 @@ pub mod v1 {
|
||||
|
||||
/// Whether the server should return an animated thumbnail.
|
||||
///
|
||||
/// When `true`, the server should return an animated thumbnail if possible and supported.
|
||||
/// Otherwise it must not return an animated thumbnail.
|
||||
///
|
||||
/// Defaults to `false`.
|
||||
#[cfg(feature = "unstable-msc2705")]
|
||||
/// When `Some(true)`, the server should return an animated thumbnail if possible and
|
||||
/// supported. When `Some(false)`, the server must not return an animated
|
||||
/// thumbnail. When `None`, the server should not return an animated thumbnail.
|
||||
#[ruma_api(query)]
|
||||
#[serde(
|
||||
rename = "org.matrix.msc2705.animated",
|
||||
default,
|
||||
skip_serializing_if = "ruma_common::serde::is_default"
|
||||
)]
|
||||
pub animated: bool,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub animated: Option<bool>,
|
||||
}
|
||||
|
||||
/// Response type for the `get_content_thumbnail` endpoint.
|
||||
@ -112,8 +106,7 @@ pub mod v1 {
|
||||
width,
|
||||
height,
|
||||
timeout_ms: crate::media::default_download_timeout(),
|
||||
#[cfg(feature = "unstable-msc2705")]
|
||||
animated: false,
|
||||
animated: None,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -95,18 +95,12 @@ pub mod v3 {
|
||||
|
||||
/// Whether the server should return an animated thumbnail.
|
||||
///
|
||||
/// When `true`, the server should return an animated thumbnail if possible and supported.
|
||||
/// Otherwise it must not return an animated thumbnail.
|
||||
///
|
||||
/// Defaults to `false`.
|
||||
#[cfg(feature = "unstable-msc2705")]
|
||||
/// When `Some(true)`, the server should return an animated thumbnail if possible and
|
||||
/// supported. When `Some(false)`, the server must not return an animated
|
||||
/// thumbnail. When `None`, the server should not return an animated thumbnail.
|
||||
#[ruma_api(query)]
|
||||
#[serde(
|
||||
rename = "org.matrix.msc2705.animated",
|
||||
default,
|
||||
skip_serializing_if = "ruma_common::serde::is_default"
|
||||
)]
|
||||
pub animated: bool,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub animated: Option<bool>,
|
||||
}
|
||||
|
||||
/// Response type for the `get_content_thumbnail` endpoint.
|
||||
@ -148,8 +142,7 @@ pub mod v3 {
|
||||
allow_remote: true,
|
||||
timeout_ms: crate::media::default_download_timeout(),
|
||||
allow_redirect: false,
|
||||
#[cfg(feature = "unstable-msc2705")]
|
||||
animated: false,
|
||||
animated: None,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,6 @@ unstable-msc2448 = [
|
||||
]
|
||||
unstable-msc2654 = ["ruma-client-api?/unstable-msc2654"]
|
||||
unstable-msc2666 = ["ruma-client-api?/unstable-msc2666"]
|
||||
unstable-msc2705 = ["ruma-client-api?/unstable-msc2705"]
|
||||
unstable-msc2747 = ["ruma-events?/unstable-msc2747"]
|
||||
unstable-msc2867 = ["ruma-events?/unstable-msc2867"]
|
||||
unstable-msc2870 = ["ruma-common/unstable-msc2870"]
|
||||
@ -245,7 +244,6 @@ __ci = [
|
||||
"unstable-msc2448",
|
||||
"unstable-msc2654",
|
||||
"unstable-msc2666",
|
||||
"unstable-msc2705",
|
||||
"unstable-msc2747",
|
||||
"unstable-msc2867",
|
||||
"unstable-msc2870",
|
||||
|
Loading…
x
Reference in New Issue
Block a user