Describe the bug
I came across this while debugging an issue on Element X: Using get_profile_field for the AvatarUrl was failing to decode the response when encountering null. The server response for the failing call is {"avatar_url":null}. I've opened a PR to work around this in the Rust SDK by using the deprecated get_avatar_url request as that one does handle null values:
matrix-org/matrix-rust-sdk#6148
How to Reproduce
Using the Rust SDK before matrix-org/matrix-rust-sdk#6148 is merged, call Account::set_avatar_url with None and then call Account:get_avatar_url.
Describe the bug
I came across this while debugging an issue on Element X: Using
get_profile_fieldfor theAvatarUrlwas failing to decode the response when encounteringnull. The server response for the failing call is{"avatar_url":null}. I've opened a PR to work around this in the Rust SDK by using the deprecatedget_avatar_urlrequest as that one does handlenullvalues:matrix-org/matrix-rust-sdk#6148
How to Reproduce
Using the Rust SDK before matrix-org/matrix-rust-sdk#6148 is merged, call
Account::set_avatar_urlwithNoneand then callAccount:get_avatar_url.