#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
1 changed files with 4 additions and 2 deletions

View File

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