fix: use display name where available for friends

pull/1049/head
Paul Makles 2023-06-11 22:22:52 +01:00
parent 4008e3ba6d
commit 4d5eec5c92
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ export const Friend = observer(({ user }: Props) => {
})}>
<UserIcon target={user} size={36} status />
<div className={styles.name}>
<span>{user.username}</span>
<span>{user.display_name ?? user.username}</span>
{subtext && <span className={styles.subtext}>{subtext}</span>}
</div>
<div className={styles.actions}>{actions}</div>