1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
Zhiyuan Zheng
2022-05-03 00:49:19 +02:00
parent 09ba2ec0a7
commit b84b59f39f
4 changed files with 9 additions and 22 deletions

View File

@ -26,7 +26,7 @@ const HeaderSharedAccount = React.memo(
numberOfLines={1}
>
<ParseEmojis
content={account.display_name || account.username}
content={account?.display_name || account.username}
emojis={account.emojis}
fontBold
/>

View File

@ -96,7 +96,10 @@ const AccountAttachments = React.memo(
item.media_attachments[0]?.url,
remote: item.media_attachments[0]?.remote_url
}}
blurhash={item.media_attachments[0].blurhash}
blurhash={
item.media_attachments[0] &&
(item.media_attachments[0].blurhash || undefined)
}
dimension={{ width: width, height: width }}
style={{ marginLeft: StyleConstants.Spacing.Global.PagePadding }}
onPress={() => {