From ef24611a1f2a55f3ea4ca57d8044ca91a88e7923 Mon Sep 17 00:00:00 2001
From: Hailey <me@haileyok.com>
Date: Fri, 22 Mar 2024 17:05:39 -0700
Subject: revert change for closing composer on web only (#3343)

---
 src/view/com/composer/Composer.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/view/com/composer/Composer.tsx')

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"
-- 
cgit 1.4.1

