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:
@@ -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 })
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user