1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Update branching

This commit is contained in:
Zhiyuan Zheng
2021-03-14 21:48:28 +01:00
parent b21f1b5a0e
commit a23f98842f
13 changed files with 54 additions and 128 deletions

View File

@ -1,3 +1,4 @@
import { QueryKeyTimeline } from '@utils/queryHooks/timeline'
import { StyleConstants } from '@utils/styles/constants'
import { useTheme } from '@utils/styles/ThemeManager'
import React from 'react'
@ -5,15 +6,18 @@ import { useTranslation } from 'react-i18next'
import { Text } from 'react-native'
export interface Props {
queryKey?: QueryKeyTimeline
status: Mastodon.Status
}
const TimelineFullConversation = React.memo(
({ status }: Props) => {
({ queryKey, status }: Props) => {
const { t } = useTranslation('componentTimeline')
const { theme } = useTheme()
return status.in_reply_to_account_id &&
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