From ded83663de692974f5bc01054a0eef1da797ac90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Sat, 19 Mar 2022 12:32:54 +0100 Subject: [PATCH] federation-api: Deserialize stable names for unstable features --- .../src/query/get_profile_information.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/ruma-federation-api/src/query/get_profile_information.rs b/crates/ruma-federation-api/src/query/get_profile_information.rs index 0a8bdc16..42d7fdb0 100644 --- a/crates/ruma-federation-api/src/query/get_profile_information.rs +++ b/crates/ruma-federation-api/src/query/get_profile_information.rs @@ -55,7 +55,11 @@ pub mod v1 { /// This uses the unstable prefix in /// [MSC2448](https://github.com/matrix-org/matrix-spec-proposals/pull/2448). #[cfg(feature = "unstable-msc2448")] - #[serde(rename = "xyz.amorgan.blurhash", skip_serializing_if = "Option::is_none")] + #[serde( + rename = "xyz.amorgan.blurhash", + alias = "blurhash", + skip_serializing_if = "Option::is_none" + )] pub blurhash: Option, } }