client-api: Work around another Element bug

This commit is contained in:
Jonas Platte 2021-08-10 12:31:08 +02:00
parent 565793a37e
commit 4e68509faf
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 5 additions and 3 deletions

View File

@ -9,6 +9,8 @@ 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.0

View File

@ -17,9 +17,9 @@ ruma_api! {
request: {}
response: {
/// A list of third party identifiers the homeserver has associated with the user's
/// account.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
/// 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"))]
pub threepids: Vec<ThirdPartyIdentifier>,
}