client-api: Add unstable support for animated thumbnails
According to MSC2705
This commit is contained in:
parent
a28d1428e0
commit
19a29934fa
@ -47,6 +47,7 @@ Improvements:
|
|||||||
- Add unstable support for moderator server support discovery, according to MSC4121
|
- Add unstable support for moderator server support discovery, according to MSC4121
|
||||||
- Add unstable support for the room summary endpoint from MSC3266 behind the
|
- Add unstable support for the room summary endpoint from MSC3266 behind the
|
||||||
`unstable-msc3266` feature.
|
`unstable-msc3266` feature.
|
||||||
|
- Add unstable support for animated thumbnails, according to MSC2705
|
||||||
|
|
||||||
# 0.17.4
|
# 0.17.4
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ unstable-exhaustive-types = ["ruma-common/unstable-exhaustive-types"]
|
|||||||
unstable-msc2666 = []
|
unstable-msc2666 = []
|
||||||
unstable-msc2448 = []
|
unstable-msc2448 = []
|
||||||
unstable-msc2654 = []
|
unstable-msc2654 = []
|
||||||
|
unstable-msc2705 = []
|
||||||
unstable-msc2965 = []
|
unstable-msc2965 = []
|
||||||
unstable-msc2967 = []
|
unstable-msc2967 = []
|
||||||
unstable-msc3266 = []
|
unstable-msc3266 = []
|
||||||
|
@ -87,6 +87,21 @@ pub mod v3 {
|
|||||||
#[ruma_api(query)]
|
#[ruma_api(query)]
|
||||||
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
|
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
|
||||||
pub allow_redirect: bool,
|
pub allow_redirect: bool,
|
||||||
|
|
||||||
|
/// 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")]
|
||||||
|
#[ruma_api(query)]
|
||||||
|
#[serde(
|
||||||
|
rename = "org.matrix.msc2705.animated",
|
||||||
|
default,
|
||||||
|
skip_serializing_if = "ruma_common::serde::is_default"
|
||||||
|
)]
|
||||||
|
pub animated: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Response type for the `get_content_thumbnail` endpoint.
|
/// Response type for the `get_content_thumbnail` endpoint.
|
||||||
@ -127,6 +142,8 @@ pub mod v3 {
|
|||||||
allow_remote: true,
|
allow_remote: true,
|
||||||
timeout_ms: crate::media::default_download_timeout(),
|
timeout_ms: crate::media::default_download_timeout(),
|
||||||
allow_redirect: false,
|
allow_redirect: false,
|
||||||
|
#[cfg(feature = "unstable-msc2705")]
|
||||||
|
animated: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,6 +181,7 @@ unstable-msc2448 = [
|
|||||||
]
|
]
|
||||||
unstable-msc2654 = ["ruma-client-api?/unstable-msc2654"]
|
unstable-msc2654 = ["ruma-client-api?/unstable-msc2654"]
|
||||||
unstable-msc2666 = ["ruma-client-api?/unstable-msc2666"]
|
unstable-msc2666 = ["ruma-client-api?/unstable-msc2666"]
|
||||||
|
unstable-msc2705 = ["ruma-client-api?/unstable-msc2705"]
|
||||||
unstable-msc2747 = ["ruma-events?/unstable-msc2747"]
|
unstable-msc2747 = ["ruma-events?/unstable-msc2747"]
|
||||||
unstable-msc2867 = ["ruma-events?/unstable-msc2867"]
|
unstable-msc2867 = ["ruma-events?/unstable-msc2867"]
|
||||||
unstable-msc2870 = ["ruma-common/unstable-msc2870"]
|
unstable-msc2870 = ["ruma-common/unstable-msc2870"]
|
||||||
@ -236,6 +237,7 @@ __ci = [
|
|||||||
"unstable-msc2448",
|
"unstable-msc2448",
|
||||||
"unstable-msc2654",
|
"unstable-msc2654",
|
||||||
"unstable-msc2666",
|
"unstable-msc2666",
|
||||||
|
"unstable-msc2705",
|
||||||
"unstable-msc2747",
|
"unstable-msc2747",
|
||||||
"unstable-msc2867",
|
"unstable-msc2867",
|
||||||
"unstable-msc2870",
|
"unstable-msc2870",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user