mirror of
https://github.com/tooot-app/app
synced 2025-02-11 17:30:50 +01:00
commit
c443359fc1
@ -4,7 +4,7 @@
|
|||||||
"native": "211218",
|
"native": "211218",
|
||||||
"major": 3,
|
"major": 3,
|
||||||
"minor": 0,
|
"minor": 0,
|
||||||
"patch": 0,
|
"patch": 1,
|
||||||
"expo": "44.0.0"
|
"expo": "44.0.0"
|
||||||
},
|
},
|
||||||
"description": "tooot app for Mastodon",
|
"description": "tooot app for Mastodon",
|
||||||
|
@ -15,8 +15,8 @@ const composePost = async (
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
url: `statuses/${composeState.replyToStatus.id}`
|
url: `statuses/${composeState.replyToStatus.id}`
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
if (err.status && err.status == 404) {
|
if (err && err.status && err.status == 404) {
|
||||||
return Promise.reject({ removeReply: true })
|
return Promise.reject({ removeReply: true })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import accountInitialState from '@screens/Tabs/Shared/Account/utils/initialState
|
|||||||
import accountReducer from '@screens/Tabs/Shared/Account/utils/reducer'
|
import accountReducer from '@screens/Tabs/Shared/Account/utils/reducer'
|
||||||
import { useProfileQuery } from '@utils/queryHooks/profile'
|
import { useProfileQuery } from '@utils/queryHooks/profile'
|
||||||
import { getInstanceActive } from '@utils/slices/instancesSlice'
|
import { getInstanceActive } from '@utils/slices/instancesSlice'
|
||||||
|
import { StyleConstants } from '@utils/styles/constants'
|
||||||
import React, { useReducer, useRef } from 'react'
|
import React, { useReducer, useRef } from 'react'
|
||||||
import Animated, {
|
import Animated, {
|
||||||
useAnimatedScrollHandler,
|
useAnimatedScrollHandler,
|
||||||
@ -49,6 +50,7 @@ const TabMeRoot: React.FC = () => {
|
|||||||
keyboardShouldPersistTaps='handled'
|
keyboardShouldPersistTaps='handled'
|
||||||
onScroll={onScroll}
|
onScroll={onScroll}
|
||||||
scrollEventThrottle={16}
|
scrollEventThrottle={16}
|
||||||
|
style={{ marginBottom: StyleConstants.Spacing.L }}
|
||||||
>
|
>
|
||||||
{instanceActive !== -1 ? (
|
{instanceActive !== -1 ? (
|
||||||
<MyInfo account={data} />
|
<MyInfo account={data} />
|
||||||
|
@ -38,12 +38,13 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
|
|||||||
if (!scrolled.current) {
|
if (!scrolled.current) {
|
||||||
scrolled.current = true
|
scrolled.current = true
|
||||||
const pointer = findIndex(flattenData, ['id', toot.id])
|
const pointer = findIndex(flattenData, ['id', toot.id])
|
||||||
setTimeout(() => {
|
pointer > 0 &&
|
||||||
flRef.current?.scrollToIndex({
|
setTimeout(() => {
|
||||||
index: pointer === -1 ? 0 : pointer,
|
flRef.current?.scrollToIndex({
|
||||||
viewOffset: 100
|
index: pointer,
|
||||||
})
|
viewOffset: 100
|
||||||
}, 500)
|
})
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -29,7 +29,7 @@ const pushUseConnect = ({ mode, t, instances, dispatch }: Params) => {
|
|||||||
url: `push/connect/${expoToken}`,
|
url: `push/connect/${expoToken}`,
|
||||||
sentry: true
|
sentry: true
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
if (error.status == 410) {
|
if (error.status == 404) {
|
||||||
displayMessage({
|
displayMessage({
|
||||||
mode,
|
mode,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user