From e7fd523759a89bc39282db94b41eeff666488391 Mon Sep 17 00:00:00 2001 From: Evie Gauthier Date: Sat, 28 Mar 2026 01:25:41 -0400 Subject: [PATCH] chore: format profile avatar fix files --- .changeset/fix-profile-avatar-loading.md | 2 +- src/app/hooks/useUserProfile.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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'],