1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Try to fix Android storage issue

This commit is contained in:
Zhiyuan Zheng
2022-05-19 00:46:25 +02:00
parent 0479e2fc9f
commit 67b15f75f5
4 changed files with 23 additions and 10 deletions

View File

@@ -378,10 +378,7 @@ const ScreenCompose: React.FC<RootStackScreenProps<'Screen-Compose'>> = ({
)
} else {
Sentry.Native.captureMessage('Compose posting', {
contexts: {
errorObject: error,
errorString: error.toString()
}
contexts: { errorObject: error }
})
haptics('Error')
composeDispatch({ type: 'posting', payload: false })

View File

@@ -1,4 +1,4 @@
import apiInstance from '@api/instance'
import apiInstance, { InstanceResponse } from '@api/instance'
import { ComposeState } from '@screens/Compose/utils/types'
import { RootStackParamList } from '@utils/navigation/navigators'
import * as Crypto from 'expo-crypto'
@@ -6,7 +6,7 @@ import * as Crypto from 'expo-crypto'
const composePost = async (
params: RootStackParamList['Screen-Compose'],
composeState: ComposeState
) => {
): Promise<InstanceResponse<Mastodon.Status>> => {
const formData = new FormData()
if (composeState.replyToStatus) {