events: Remove the serde alias for the blurhash field in events
Some clients send both the stable and unstable version so deserialization fails.
This commit is contained in:
parent
f29bbebf08
commit
e490c8893d
@ -106,11 +106,7 @@ pub struct ImageInfo {
|
||||
/// 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",
|
||||
alias = "blurhash",
|
||||
skip_serializing_if = "Option::is_none"
|
||||
)]
|
||||
#[serde(rename = "xyz.amorgan.blurhash", skip_serializing_if = "Option::is_none")]
|
||||
pub blurhash: Option<String>,
|
||||
}
|
||||
|
||||
|
@ -66,11 +66,7 @@ pub struct ImageInfo {
|
||||
/// 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",
|
||||
alias = "blurhash",
|
||||
skip_serializing_if = "Option::is_none"
|
||||
)]
|
||||
#[serde(rename = "xyz.amorgan.blurhash", skip_serializing_if = "Option::is_none")]
|
||||
pub blurhash: Option<String>,
|
||||
}
|
||||
|
||||
|
@ -89,11 +89,7 @@ pub struct RoomMemberEventContent {
|
||||
/// 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",
|
||||
alias = "blurhash",
|
||||
skip_serializing_if = "Option::is_none"
|
||||
)]
|
||||
#[serde(rename = "xyz.amorgan.blurhash", skip_serializing_if = "Option::is_none")]
|
||||
pub blurhash: Option<String>,
|
||||
|
||||
/// User-supplied text for why their membership has changed.
|
||||
|
Loading…
x
Reference in New Issue
Block a user