client-api: Fix compat workaround for Element
This commit is contained in:
parent
989c25a541
commit
1350f65dcb
@ -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
|
||||
|
||||
|
@ -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<ThirdPartyIdentifier>,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user