mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix details on timeline
This commit is contained in:
@ -85,7 +85,6 @@ const Screens: React.FC<Props> = ({ localCorrupt }) => {
|
||||
const showLocalCorrect = () => {
|
||||
if (localCorrupt) {
|
||||
displayMessage({
|
||||
autoHide: false,
|
||||
message: t('index.localCorrupt'),
|
||||
description: localCorrupt.length ? localCorrupt : undefined,
|
||||
type: 'error',
|
||||
|
@ -49,7 +49,7 @@ const displayMessage = ({
|
||||
}
|
||||
|
||||
showMessage({
|
||||
duration: duration === 'short' ? 1500 : 3000,
|
||||
duration: type === 'error' ? 5000 : duration === 'short' ? 1500 : 3000,
|
||||
autoHide,
|
||||
message,
|
||||
description,
|
||||
|
@ -58,8 +58,8 @@ const Timeline: React.FC<Props> = ({
|
||||
...queryKey[1],
|
||||
options: {
|
||||
notifyOnChangeProps: Platform.select({
|
||||
ios: ['data', 'isFetching'],
|
||||
android: ['data', 'isFetching', 'isLoading']
|
||||
ios: ['dataUpdatedAt', 'isFetching'],
|
||||
android: ['dataUpdatedAt', 'isFetching', 'isLoading']
|
||||
}),
|
||||
getNextPageParam: lastPage =>
|
||||
lastPage?.links?.next && { max_id: lastPage.links.next }
|
||||
|
@ -18,7 +18,9 @@ const TimelineFooter = React.memo(
|
||||
...queryKey[1],
|
||||
options: {
|
||||
enabled: !disableInfinity,
|
||||
notifyOnChangeProps: ['hasNextPage']
|
||||
notifyOnChangeProps: ['hasNextPage'],
|
||||
getNextPageParam: lastPage =>
|
||||
lastPage?.links?.next && { max_id: lastPage.links.next }
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user