disable saving drafts for replies (#9815)

This commit is contained in:
Samuel Newman
2026-02-03 19:32:13 +02:00
committed by GitHub
parent 017120b3e8
commit 3197cbcf36
+21 -5
View File
@@ -1141,6 +1141,16 @@ export const ComposePost = ({
{!IS_WEBFooterSticky && footer}
</View>
{replyTo ? (
<Prompt.Basic
control={discardPromptControl}
title={_(msg`Discard draft?`)}
description=""
confirmButtonCta={_(msg`Discard`)}
confirmButtonColor="negative"
onConfirm={handleDiscard}
/>
) : (
<Prompt.Outer control={discardPromptControl}>
<Prompt.Content>
<Prompt.TitleText>
@@ -1151,11 +1161,16 @@ export const ComposePost = ({
)}
</Prompt.TitleText>
<Prompt.DescriptionText>
{composerState.draftId
? _(
msg`You have unsaved changes to this draft, would you like to save them?`,
)
: _(msg`Would you like to save this as a draft to edit later?`)}
{composerState.draftId ? (
<Trans>
You have unsaved changes to this draft, would you like to
save them?
</Trans>
) : (
<Trans>
Would you like to save this as a draft to edit later?
</Trans>
)}
</Prompt.DescriptionText>
</Prompt.Content>
<Prompt.Actions>
@@ -1176,6 +1191,7 @@ export const ComposePost = ({
<Prompt.Cancel />
</Prompt.Actions>
</Prompt.Outer>
)}
</KeyboardAvoidingView>
</BottomSheetPortalProvider>
)