diff --git a/src/screens/Compose.tsx b/src/screens/Compose.tsx index ffd54a24..6b3d6f4d 100644 --- a/src/screens/Compose.tsx +++ b/src/screens/Compose.tsx @@ -343,8 +343,7 @@ const ScreenCompose: React.FC = ({ return ( = ({ timestamp }) => { draft => draft.timestamp !== timestamp ) + useEffect(() => { + if (instanceDrafts?.length === 0) { + navigation.goBack() + } + }, [instanceDrafts?.length]) + const actionWidth = StyleConstants.Font.Size.L + StyleConstants.Spacing.Global.PagePadding * 4 @@ -156,18 +163,18 @@ const ComposeDraftsListRoot: React.FC = ({ timestamp }) => { return ( <> - +