client-api: rename avatar to avatar_url for SlidingSyncRoomHero (#1833)

This commit is contained in:
Matthias Ahouansou 2024-06-05 09:41:26 +00:00 committed by GitHub
parent a8025de761
commit f323f4f960
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,10 @@ Improvements:
both have a new `include_heroes` field. `SlidingSyncRoom` has a new `heroes`
field, with a new type `SlidingSyncRoomHero`.
Bug fixes:
- Rename `avatar` to `avatar_url` when (De)serializing
# 0.18.0
Bug fixes:

View File

@ -516,7 +516,7 @@ pub struct SlidingSyncRoomHero {
pub name: Option<String>,
/// 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>,
}