From 7e47f9ad1469ebe228390a8eb0d54c7c9f50403f Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 12:38:17 -0400 Subject: [PATCH] fix: back from a freshly created post returns home (#125) fix: keep home in the stack when exiting the recording flow Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Roscoe Rubin-Rottenberg <118622417+knotbin@users.noreply.github.com> --- lib/src/features/posting/ui/pages/recording_page.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/features/posting/ui/pages/recording_page.dart b/lib/src/features/posting/ui/pages/recording_page.dart index 888ae512..9282832b 100644 --- a/lib/src/features/posting/ui/pages/recording_page.dart +++ b/lib/src/features/posting/ui/pages/recording_page.dart @@ -634,9 +634,10 @@ class _RecordingPageState extends ConsumerState { ), ); - if (mounted) { - context.router.pop(); - } + if (!mounted) return; + // Exit the recording flow by dropping this page only; posting already + // unwinds the stack, so popping here would remove the page below. + context.router.removeRoute(context.routeData); } } catch (e, stackTrace) { _logger.e('Error processing video', error: e, stackTrace: stackTrace); -- 2.51.2