mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fixed #354
This commit is contained in:
@ -15,7 +15,7 @@ import { getInstanceAccount } from '@utils/slices/instancesSlice'
|
||||
import { StyleConstants } from '@utils/styles/constants'
|
||||
import { useTheme } from '@utils/styles/ThemeManager'
|
||||
import { isEqual, uniqBy } from 'lodash'
|
||||
import React, { useCallback } from 'react'
|
||||
import React, { useCallback, useRef } from 'react'
|
||||
import { Pressable, View } from 'react-native'
|
||||
import { useSelector } from 'react-redux'
|
||||
import TimelineContextMenu from './Shared/ContextMenu'
|
||||
@ -30,9 +30,14 @@ export interface Props {
|
||||
|
||||
const TimelineNotifications = React.memo(
|
||||
({ notification, queryKey, highlighted = false }: Props) => {
|
||||
const copiableContent = useRef<{ content: string; complete: boolean }>({
|
||||
content: '',
|
||||
complete: false
|
||||
})
|
||||
|
||||
if (
|
||||
notification.status &&
|
||||
shouldFilter({ status: notification.status, queryKey })
|
||||
shouldFilter({ copiableContent, status: notification.status, queryKey })
|
||||
) {
|
||||
return <TimelineFiltered />
|
||||
}
|
||||
@ -60,9 +65,9 @@ const TimelineNotifications = React.memo(
|
||||
|
||||
return (
|
||||
<TimelineContextMenu
|
||||
copiableContent={copiableContent}
|
||||
status={notification.status}
|
||||
queryKey={queryKey}
|
||||
disabled={highlighted}
|
||||
>
|
||||
<Pressable
|
||||
style={{
|
||||
|
Reference in New Issue
Block a user