client-api: rename avatar to avatar_url for SlidingSyncRoomHero (#1833)
This commit is contained in:
parent
a8025de761
commit
f323f4f960
@ -14,6 +14,10 @@ Improvements:
|
|||||||
both have a new `include_heroes` field. `SlidingSyncRoom` has a new `heroes`
|
both have a new `include_heroes` field. `SlidingSyncRoom` has a new `heroes`
|
||||||
field, with a new type `SlidingSyncRoomHero`.
|
field, with a new type `SlidingSyncRoomHero`.
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
|
||||||
|
- Rename `avatar` to `avatar_url` when (De)serializing
|
||||||
|
|
||||||
# 0.18.0
|
# 0.18.0
|
||||||
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
|
@ -516,7 +516,7 @@ pub struct SlidingSyncRoomHero {
|
|||||||
pub name: Option<String>,
|
pub name: Option<String>,
|
||||||
|
|
||||||
/// The avatar of the hero.
|
/// The avatar of the hero.
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "avatar_url", skip_serializing_if = "Option::is_none")]
|
||||||
pub avatar: Option<OwnedMxcUri>,
|
pub avatar: Option<OwnedMxcUri>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user