about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-03-22 17:05:39 -0700
committerGitHub <noreply@github.com>2024-03-22 17:05:39 -0700
commitef24611a1f2a55f3ea4ca57d8044ca91a88e7923 (patch)
treea2cd73e350e75b3b4909c2bc95f9d6eb4854b6bf /src
parent0baf9f9919ee06633f7f1ab2563aa2933e5becdd (diff)
downloadvoidsky-ef24611a1f2a55f3ea4ca57d8044ca91a88e7923.tar.zst
revert change for closing composer on web only (#3343)
Diffstat (limited to 'src')
-rw-r--r--src/view/com/composer/Composer.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx
index d64f20a9f..ac6fe6fed 100644
--- a/src/view/com/composer/Composer.tsx
+++ b/src/view/com/composer/Composer.tsx
@@ -508,7 +508,11 @@ export const ComposePost = observer(function ComposePost({
         title={_(msg`Discard draft?`)}
         description={_(msg`Are you sure you'd like to discard this draft?`)}
         onConfirm={() => {
-          discardPromptControl.close(onClose)
+          if (isWeb) {
+            onClose()
+          } else {
+            discardPromptControl.close(onClose)
+          }
         }}
         confirmButtonCta={_(msg`Discard`)}
         confirmButtonColor="negative"