mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 10:15:26 +00:00
fix: use display name where available for friends
This commit is contained in:
@@ -136,7 +136,7 @@ export const Friend = observer(({ user }: Props) => {
|
|||||||
})}>
|
})}>
|
||||||
<UserIcon target={user} size={36} status />
|
<UserIcon target={user} size={36} status />
|
||||||
<div className={styles.name}>
|
<div className={styles.name}>
|
||||||
<span>{user.username}</span>
|
<span>{user.display_name ?? user.username}</span>
|
||||||
{subtext && <span className={styles.subtext}>{subtext}</span>}
|
{subtext && <span className={styles.subtext}>{subtext}</span>}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.actions}>{actions}</div>
|
<div className={styles.actions}>{actions}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user