From 1898d5dbaab2a02cca4533a72d421f30e9e76761 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Wed, 18 Jan 2023 14:47:59 -0600
Subject: Keep the composer image selector open after choosing an image

---
 src/view/com/composer/ComposePost.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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

diff --git a/src/view/com/composer/ComposePost.tsx b/src/view/com/composer/ComposePost.tsx
index c390717a4..abdcd04ec 100644
--- a/src/view/com/composer/ComposePost.tsx
+++ b/src/view/com/composer/ComposePost.tsx
@@ -105,7 +105,9 @@ export const ComposePost = observer(function ComposePost({
   }
   const onSelectPhotos = (photos: string[]) => {
     setSelectedPhotos(photos)
-    setIsSelectingPhotos(false)
+    if (photos.length >= 4) {
+      setIsSelectingPhotos(false)
+    }
   }
   const onChangeText = (newText: string) => {
     setText(newText)
-- 
cgit 1.4.1

