mirror of
https://github.com/tooot-app/app
synced 2025-02-07 13:53:46 +01:00
Fix tooot support broken
This commit is contained in:
parent
e31ce3772a
commit
01c27d6a99
@ -7,7 +7,7 @@ import ComposeRoot from '@screens/Compose/Root'
|
||||
import { formatText } from '@screens/Compose/utils/processText'
|
||||
import { useQueryClient } from '@tanstack/react-query'
|
||||
import { handleError } from '@utils/api/helpers'
|
||||
import { RootStackScreenProps, useNavState } from '@utils/navigation/navigators'
|
||||
import { RootStackScreenProps } from '@utils/navigation/navigators'
|
||||
import { useInstanceQuery } from '@utils/queryHooks/instance'
|
||||
import { usePreferencesQuery } from '@utils/queryHooks/preferences'
|
||||
import { searchLocalStatus } from '@utils/queryHooks/search'
|
||||
@ -360,10 +360,12 @@ const ScreenCompose: React.FC<RootStackScreenProps<'Screen-Compose'>> = ({
|
||||
break
|
||||
case 'conversation':
|
||||
case 'reply':
|
||||
for (const navState of params.navigationState) {
|
||||
navState &&
|
||||
navState[1].page !== 'Following' &&
|
||||
queryClient.invalidateQueries(navState)
|
||||
if (params.navigationState) {
|
||||
for (const navState of params.navigationState) {
|
||||
navState &&
|
||||
navState[1].page !== 'Following' &&
|
||||
queryClient.invalidateQueries(navState)
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user