Merge pull request #193 from tooot-app/main

Releave v3.0.1
This commit is contained in:
xmflsct 2022-01-02 17:42:43 +01:00 committed by GitHub
commit c443359fc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 10 deletions

View File

@ -4,7 +4,7 @@
"native": "211218",
"major": 3,
"minor": 0,
"patch": 0,
"patch": 1,
"expo": "44.0.0"
},
"description": "tooot app for Mastodon",

View File

@ -15,8 +15,8 @@ const composePost = async (
method: 'get',
url: `statuses/${composeState.replyToStatus.id}`
})
} catch (err) {
if (err.status && err.status == 404) {
} catch (err: any) {
if (err && err.status && err.status == 404) {
return Promise.reject({ removeReply: true })
}
}

View File

@ -11,6 +11,7 @@ import accountInitialState from '@screens/Tabs/Shared/Account/utils/initialState
import accountReducer from '@screens/Tabs/Shared/Account/utils/reducer'
import { useProfileQuery } from '@utils/queryHooks/profile'
import { getInstanceActive } from '@utils/slices/instancesSlice'
import { StyleConstants } from '@utils/styles/constants'
import React, { useReducer, useRef } from 'react'
import Animated, {
useAnimatedScrollHandler,
@ -49,6 +50,7 @@ const TabMeRoot: React.FC = () => {
keyboardShouldPersistTaps='handled'
onScroll={onScroll}
scrollEventThrottle={16}
style={{ marginBottom: StyleConstants.Spacing.L }}
>
{instanceActive !== -1 ? (
<MyInfo account={data} />

View File

@ -38,12 +38,13 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
if (!scrolled.current) {
scrolled.current = true
const pointer = findIndex(flattenData, ['id', toot.id])
setTimeout(() => {
flRef.current?.scrollToIndex({
index: pointer === -1 ? 0 : pointer,
viewOffset: 100
})
}, 500)
pointer > 0 &&
setTimeout(() => {
flRef.current?.scrollToIndex({
index: pointer,
viewOffset: 100
})
}, 1000)
}
}
})

View File

@ -29,7 +29,7 @@ const pushUseConnect = ({ mode, t, instances, dispatch }: Params) => {
url: `push/connect/${expoToken}`,
sentry: true
}).catch(error => {
if (error.status == 410) {
if (error.status == 404) {
displayMessage({
mode,
type: 'error',