mirror of https://github.com/tooot-app/app
A bit more tolerant of local search
This commit is contained in:
parent
824730bc40
commit
016ea33e26
|
@ -11,7 +11,6 @@ import { RootStackScreenProps } from '@utils/navigation/navigators'
|
|||
import { useInstanceQuery } from '@utils/queryHooks/instance'
|
||||
import { usePreferencesQuery } from '@utils/queryHooks/preferences'
|
||||
import { searchLocalStatus } from '@utils/queryHooks/search'
|
||||
import { useTimelineMutation } from '@utils/queryHooks/timeline'
|
||||
import {
|
||||
getAccountStorage,
|
||||
getGlobalStorage,
|
||||
|
@ -220,7 +219,6 @@ const ScreenCompose: React.FC<RootStackScreenProps<'Screen-Compose'>> = ({
|
|||
}
|
||||
return false
|
||||
}
|
||||
const mutateTimeline = useTimelineMutation({ onMutate: true })
|
||||
|
||||
const inputProps: EmojisState['inputProps'] = [
|
||||
{
|
||||
|
|
|
@ -60,7 +60,7 @@ export const searchLocalStatus = async (
|
|||
staleTime: 3600,
|
||||
cacheTime: 3600,
|
||||
retry: false,
|
||||
...(timeout && { meta: { timeout: 1000 } })
|
||||
...(timeout && { meta: { timeout: 1500 } })
|
||||
})
|
||||
.then(res =>
|
||||
res.statuses[0]?.uri === uri || res.statuses[0]?.url === uri
|
||||
|
@ -79,7 +79,7 @@ export const searchLocalAccount = async (
|
|||
staleTime: 3600,
|
||||
cacheTime: 3600,
|
||||
retry: false,
|
||||
...(timeout && { meta: { timeout: 1000 } })
|
||||
...(timeout && { meta: { timeout: 1500 } })
|
||||
})
|
||||
.then(res => (res.accounts[0].url === url ? res.accounts[0] : Promise.reject()))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue