feat(editor): show fetching state of name auto complete
This commit is contained in:
parent
8dd91002d7
commit
b475377f64
3 changed files with 16 additions and 5 deletions
|
@ -48,6 +48,8 @@ export function getDisplayName(account?: Account, options?: { rich?: boolean })
|
|||
}
|
||||
|
||||
export function getShortHandle({ acct }: Account) {
|
||||
if (!acct)
|
||||
return ''
|
||||
return `@${acct.includes('@') ? acct.split('@')[0] : acct}`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue