1
0
mirror of https://github.com/tooot-app/app synced 2025-04-16 11:17:29 +02:00
#11
This commit is contained in:
Zhiyuan Zheng 2021-02-08 00:13:35 +01:00
parent 560d11643b
commit dd4234199b
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0

View File

@ -255,6 +255,7 @@ const ScreenCompose: React.FC<ScreenComposeProp> = ({
} }
break break
} }
removeDraft()
navigation.goBack() navigation.goBack()
}) })
.catch(error => { .catch(error => {
@ -301,8 +302,9 @@ const ScreenCompose: React.FC<ScreenComposeProp> = ({
component={ComposeRoot} component={ComposeRoot}
options={{ options={{
headerLeft, headerLeft,
headerTitle: `${totalTextCount} / ${maxTootChars}${__DEV__ && headerTitle: `${totalTextCount} / ${maxTootChars}${
` Dirty: ${composeState.dirty.toString()}`}`, __DEV__ ? ` Dirty: ${composeState.dirty.toString()}` : ''
}`,
headerTitleStyle: { headerTitleStyle: {
fontWeight: fontWeight:
totalTextCount > maxTootChars totalTextCount > maxTootChars