diff --git a/.changeset/fix-profile-avatar-loading.md b/.changeset/fix-profile-avatar-loading.md index 39bcf0471..3629a6c9f 100644 --- a/.changeset/fix-profile-avatar-loading.md +++ b/.changeset/fix-profile-avatar-loading.md @@ -2,4 +2,4 @@ default: patch --- -Fix profile data loading when MSC4440 bio data is absent or malformed, and recover avatar rendering after transient image load failures. \ No newline at end of file +Fix profile data loading when MSC4440 bio data is absent or malformed, and recover avatar rendering after transient image load failures. diff --git a/src/app/hooks/useUserProfile.ts b/src/app/hooks/useUserProfile.ts index b50a42960..cfa960542 100644 --- a/src/app/hooks/useUserProfile.ts +++ b/src/app/hooks/useUserProfile.ts @@ -61,7 +61,10 @@ const normalizeInfo = (info: any): UserProfile => { displayName: info.displayname, pronouns: info['io.fsky.nyx.pronouns'], timezone: info['us.cloke.msc4175.tz'] || info['m.tz'], - bio: msc4440Bio?.['m.text']?.[0]?.body || info['moe.sable.app.bio'] || info['chat.commet.profile_bio'], + bio: + msc4440Bio?.['m.text']?.[0]?.body || + info['moe.sable.app.bio'] || + info['chat.commet.profile_bio'], status: info['chat.commet.profile_status'], bannerUrl: info['chat.commet.profile_banner'], nameColor: info['moe.sable.app.name_color'],