From 1350f65dcb890ff731f6dd845f4a2956603cdf50 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 21 Sep 2021 13:40:44 +0200 Subject: [PATCH] client-api: Fix compat workaround for Element --- crates/ruma-client-api/CHANGELOG.md | 5 +++-- crates/ruma-client-api/src/r0/contact/get_contacts.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/ruma-client-api/CHANGELOG.md b/crates/ruma-client-api/CHANGELOG.md index 52905656..b7735ec9 100644 --- a/crates/ruma-client-api/CHANGELOG.md +++ b/crates/ruma-client-api/CHANGELOG.md @@ -1,5 +1,8 @@ # [unreleased] +* Add a `feature = "compat"` workaround for Element failing on `GET /_matrix/client/r0/account/3pid` + response if the optional `threepids` field is missing + # 0.12.2 Improvements @@ -31,8 +34,6 @@ Improvements: ``` * Add unstable support for room knocking * Add unstable support for reasons for leaving rooms -* Add a `feature = "compat"` workaround for Element failing on `GET /_matrix/client/r0/account/3pid` - response if the optional `threepids` field is missing # 0.11.2 diff --git a/crates/ruma-client-api/src/r0/contact/get_contacts.rs b/crates/ruma-client-api/src/r0/contact/get_contacts.rs index 33d5efb7..be0d6510 100644 --- a/crates/ruma-client-api/src/r0/contact/get_contacts.rs +++ b/crates/ruma-client-api/src/r0/contact/get_contacts.rs @@ -19,7 +19,7 @@ ruma_api! { response: { /// A list of third party identifiers the homeserver has associated with the user's account. #[serde(default)] - #[cfg_attr(feature = "compat", serde(skip_serializing_if = "Vec::is_empty"))] + #[cfg_attr(not(feature = "compat"), serde(skip_serializing_if = "Vec::is_empty"))] pub threepids: Vec, }