mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Persistant 🪜 setting
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { mapEnvironment } from '@utils/helpers/checkEnvironment'
|
||||
import { GLOBAL } from '@utils/storage'
|
||||
import { setGlobalStorage } from '@utils/storage/actions'
|
||||
import axios from 'axios'
|
||||
import * as Linking from 'expo-linking'
|
||||
import { userAgent } from '.'
|
||||
@@ -119,6 +118,5 @@ export const connectVerify = () =>
|
||||
headers: { ...userAgent }
|
||||
}).catch(err => {
|
||||
GLOBAL.connect = false
|
||||
setGlobalStorage('app.connect', false)
|
||||
return Promise.reject(err)
|
||||
})
|
||||
|
@@ -1,6 +1,5 @@
|
||||
import * as Sentry from '@sentry/react-native'
|
||||
import { GLOBAL } from '@utils/storage'
|
||||
import { setGlobalStorage } from '@utils/storage/actions'
|
||||
import chalk from 'chalk'
|
||||
import Constants from 'expo-constants'
|
||||
import * as Linking from 'expo-linking'
|
||||
@@ -23,7 +22,6 @@ const handleError =
|
||||
if (GLOBAL.connect) {
|
||||
if (error?.response?.status == 403 && error?.response?.data == 'connect_blocked') {
|
||||
GLOBAL.connect = false
|
||||
setGlobalStorage('app.connect', false)
|
||||
}
|
||||
}
|
||||
const shouldReportToSentry = config && (config.captureRequest || config.captureResponse)
|
||||
|
Reference in New Issue
Block a user