mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix crashes
This commit is contained in:
@ -15,8 +15,8 @@ const TimelineFullConversation = () => {
|
||||
return queryKey &&
|
||||
queryKey[1].page !== 'Toot' &&
|
||||
status.in_reply_to_account_id &&
|
||||
(status.mentions.length === 0 ||
|
||||
status.mentions.filter(mention => mention.id !== status.in_reply_to_account_id).length) ? (
|
||||
(status.mentions?.length === 0 ||
|
||||
status.mentions?.filter(mention => mention.id !== status.in_reply_to_account_id).length) ? (
|
||||
<CustomText
|
||||
fontStyle='S'
|
||||
style={{
|
||||
|
@ -22,7 +22,7 @@ const HeaderSharedReplies: React.FC = () => {
|
||||
excludeMentions &&
|
||||
(excludeMentions.current =
|
||||
mentionsBeginning?.length && status?.mentions
|
||||
? status.mentions.filter(mention => mentionsBeginning.includes(`@${mention.username}`))
|
||||
? status.mentions?.filter(mention => mentionsBeginning.includes(`@${mention.username}`))
|
||||
: [])
|
||||
|
||||
return excludeMentions?.current.length ? (
|
||||
|
Reference in New Issue
Block a user