Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): one way to select a page, so split view stops pushing #24742

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/24742/headmerged by juliusmarminge View on GitHub

Showing 38 changed files with 17 additions and 9 deletions (loading 36).

x
0 of 38 viewed, 38 left
1 addition and 5 deletionsapps/mobile/src/features/files/ThreadFilesRouteScreen.tsxModified
View file
@@ -22,7 +22,6 @@
import { EmptyState } from "../../components/ui/EmptyState";
import { FilePreviewModal, type FilePreviewSource } from "../../components/FilePreviewModal";
import { LoadingScreen } from "../../components/LoadingScreen";
-import { resolveFileSelectionNavigationAction } from "../../lib/adaptive-navigation";
import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";
import { isPdfFile } from "../../lib/filePreview";
import { tryOpenExternalUrl } from "../../lib/openExternalUrl";
@@ -478,10 +477,7 @@
navigation.navigate("NewTaskFile", params);
return;
- const navigationAction = resolveFileSelectionNavigationAction({
- hasPersistentFileInspector: hasFileInspector,
- });
- if (navigationAction === "replace") {
+ if (hasFileInspector) {
navigation.dispatch(StackActions.replace("ThreadFile", params));
return;
16 additions and 4 deletionsapps/mobile/src/features/home/HomeRouteScreen.tsxModified
View file
@@ -28,7 +28,6 @@
import { HomeHeader } from "./HomeHeader";
import { useHomeListOptions } from "./home-list-options";
import { useAtomValueWhileVisible, useHomeRouteVisible } from "./home-route-visibility";
-import { useHomeThreadRouteSelection, useHomeThreadSelection } from "./home-thread-navigation";