Something went wrong. Try again.
Personal iOS fork of Witchsky (itself a fork of Bluesky social-app).
Something went wrong. Try again.
123456789101112131415import {sanitizeAccountName} from '#/lib/strings/display-names'import {sanitizeHandle} from '#/lib/strings/handles'
export function getUserDisplayName( props: {displayName?: string; handle: string}, hideDisplayNames = false,): string { if (hideDisplayNames) { return sanitizeHandle(props.handle) } return ( sanitizeAccountName(props.displayName) || sanitizeHandle(props.handle, '@') )}