mirror of
https://github.com/tooot-app/app
synced 2025-05-30 02:39:35 +02:00
Fix #594
This commit is contained in:
parent
e95f1e8157
commit
047464a9c1
@ -218,7 +218,7 @@ const ParseHTML = React.memo(
|
|||||||
if (children) {
|
if (children) {
|
||||||
return (
|
return (
|
||||||
<ParseEmojis
|
<ParseEmojis
|
||||||
content={children.toString()}
|
content={children?.toString()}
|
||||||
emojis={emojis}
|
emojis={emojis}
|
||||||
size={size}
|
size={size}
|
||||||
adaptiveSize={adaptiveSize}
|
adaptiveSize={adaptiveSize}
|
||||||
|
@ -54,7 +54,7 @@ const TimelineTranslate = () => {
|
|||||||
<CustomText fontStyle='S' style={{ color: colors.secondary }}>{` Source: ${
|
<CustomText fontStyle='S' style={{ color: colors.secondary }}>{` Source: ${
|
||||||
detected?.language
|
detected?.language
|
||||||
}; Confidence: ${
|
}; Confidence: ${
|
||||||
detected?.confidence.toString().slice(0, 5) || 'null'
|
detected?.confidence?.toString().slice(0, 5) || 'null'
|
||||||
}; Target: ${targetLanguage}`}</CustomText>
|
}; Target: ${targetLanguage}`}</CustomText>
|
||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ const ComposeDraftsList: React.FC<ScreenComposeStackScreenProps<'Screen-Compose-
|
|||||||
rightOpenValue={-actionWidth}
|
rightOpenValue={-actionWidth}
|
||||||
previewOpenValue={-actionWidth / 2}
|
previewOpenValue={-actionWidth / 2}
|
||||||
ItemSeparatorComponent={ComponentSeparator}
|
ItemSeparatorComponent={ComponentSeparator}
|
||||||
keyExtractor={item => item.timestamp.toString()}
|
keyExtractor={item => item.timestamp?.toString()}
|
||||||
/>
|
/>
|
||||||
</PanGestureHandler>
|
</PanGestureHandler>
|
||||||
<Modal
|
<Modal
|
||||||
|
@ -43,11 +43,11 @@ const composePost = async (
|
|||||||
e => e && e.length && formData.append('poll[options][]', e)
|
e => e && e.length && formData.append('poll[options][]', e)
|
||||||
)
|
)
|
||||||
formData.append('poll[expires_in]', composeState.poll.expire)
|
formData.append('poll[expires_in]', composeState.poll.expire)
|
||||||
formData.append('poll[multiple]', composeState.poll.multiple.toString())
|
formData.append('poll[multiple]', composeState.poll.multiple?.toString())
|
||||||
}
|
}
|
||||||
|
|
||||||
if (composeState.attachments.uploads.filter(upload => upload.remote && upload.remote.id).length) {
|
if (composeState.attachments.uploads.filter(upload => upload.remote && upload.remote.id).length) {
|
||||||
formData.append('sensitive', composeState.attachments.sensitive.toString())
|
formData.append('sensitive', composeState.attachments.sensitive?.toString())
|
||||||
composeState.attachments.uploads.forEach(e => formData.append('media_ids[]', e.remote!.id!))
|
composeState.attachments.uploads.forEach(e => formData.append('media_ids[]', e.remote!.id!))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,7 +115,11 @@ const Collections: React.FC = () => {
|
|||||||
iconFront={instancePush ? 'Bell' : 'BellOff'}
|
iconFront={instancePush ? 'Bell' : 'BellOff'}
|
||||||
iconBack='ChevronRight'
|
iconBack='ChevronRight'
|
||||||
title={t('me.stacks.push.name')}
|
title={t('me.stacks.push.name')}
|
||||||
content={t('me.root.push.content', { context: instancePush.global.toString() })}
|
content={
|
||||||
|
typeof instancePush.global === 'boolean'
|
||||||
|
? t('me.root.push.content', { context: instancePush.global.toString() })
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
onPress={() => navigation.navigate('Tab-Me-Push')}
|
onPress={() => navigation.navigate('Tab-Me-Push')}
|
||||||
/>
|
/>
|
||||||
</MenuContainer>
|
</MenuContainer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user