Show initials in navigator if user doesnt have avatar (#5687)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-05-28 18:57:25 +04:00 committed by GitHub
parent 4c02a5eb2c
commit b46b773558
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -109,7 +109,6 @@
)
} else {
;({ url, srcSet, color } = (await getResource(avatarProvider.getUrl))(avatar, displayName, width))
console.log(url, srcSet, color)
}
} else if (name != null) {
color = getPlatformAvatarColorForTextDef(name, $themeStore.dark)

View File

@ -708,7 +708,10 @@
class="cursor-pointer"
on:click|stopPropagation={() => showPopup(AccountPopup, {}, popupPosition)}
>
<Component is={contact.component.Avatar} props={{ person, size: 'small', account: account._id }} />
<Component
is={contact.component.Avatar}
props={{ person, name: person?.name, size: 'small', account: account._id }}
/>
</div>
</div>
</div>