41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
--- a/src/view/com/composer/Composer.tsx
|
|
+++ b/src/view/com/composer/Composer.tsx
|
|
@@ -717,16 +717,7 @@
|
|
post.shortenedGraphemeLength > 0 || post.embed.media || post.embed.link,
|
|
)
|
|
|
|
- // Show discard prompt if there's content AND either:
|
|
- // - No draft is loaded (new composition)
|
|
- // - Draft is loaded but has been modified
|
|
- if (hasContent && (!composerState.draftId || composerState.isDirty)) {
|
|
- closeAllDialogs()
|
|
- Keyboard.dismiss()
|
|
- discardPromptControl.open()
|
|
- } else {
|
|
- onClose()
|
|
- }
|
|
+ onClose()
|
|
}, [
|
|
thread,
|
|
composerState.draftId,
|
|
@@ -1551,18 +1542,7 @@
|
|
</>
|
|
) : (
|
|
<>
|
|
- {!isReply && (
|
|
- <DraftsButton
|
|
- onSelectDraft={onSelectDraft}
|
|
- onSaveDraft={onSaveDraft}
|
|
- onDiscard={onDiscard}
|
|
- isEmpty={isEmpty}
|
|
- isDirty={isDirty}
|
|
- isEditingDraft={isEditingDraft}
|
|
- canSaveDraft={canSaveDraft}
|
|
- textLength={textLength}
|
|
- />
|
|
- )}
|
|
+ {/* DraftsButton removed */}
|
|
<Button
|
|
testID="composerPublishBtn"
|
|
label={
|