[🐴] show deleted account for missing.invalid
(#4014)
* show deleted account for `missing.invalid` * sigh
This commit is contained in:
parent
08836ecbec
commit
e1ed4a4429
2 changed files with 26 additions and 14 deletions
|
@ -147,6 +147,11 @@ let Header = ({
|
|||
const navigation = useNavigation<NavigationProp>()
|
||||
const convoState = useConvo()
|
||||
|
||||
const isDeletedAccount = profile?.handle === 'missing.invalid'
|
||||
const displayName = isDeletedAccount
|
||||
? 'Deleted Account'
|
||||
: profile?.displayName
|
||||
|
||||
const onPressBack = useCallback(() => {
|
||||
if (isWeb) {
|
||||
navigation.replace('Messages')
|
||||
|
@ -197,11 +202,13 @@ let Header = ({
|
|||
<Text
|
||||
style={[a.text_lg, a.font_bold, a.pt_sm, a.pb_2xs]}
|
||||
numberOfLines={1}>
|
||||
{profile.displayName}
|
||||
</Text>
|
||||
<Text style={[t.atoms.text_contrast_medium]} numberOfLines={1}>
|
||||
@{profile.handle}
|
||||
{displayName}
|
||||
</Text>
|
||||
{!isDeletedAccount && (
|
||||
<Text style={[t.atoms.text_contrast_medium]} numberOfLines={1}>
|
||||
@{profile.handle}
|
||||
</Text>
|
||||
)}
|
||||
</View>
|
||||
) : (
|
||||
<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue