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, }