fix(chat): return directly to paid image

This commit is contained in:
2026-06-30 11:14:15 +08:00
parent f352dbdffa
commit a761917669
2 changed files with 20 additions and 9 deletions
-7
View File
@@ -8,7 +8,6 @@ import { useAuthState } from "@/stores/auth/auth-context";
import { useChatDispatch, useChatState } from "@/stores/chat/chat-context";
import { MobileShell } from "@/app/_components/core";
import { consumePendingChatImageReturn } from "./chat-image-return-session";
import {
BrowserHintOverlay,
@@ -89,12 +88,6 @@ export function ChatScreen() {
authState.loginStatus,
]);
useEffect(() => {
const pendingImageReturn = consumePendingChatImageReturn();
if (!pendingImageReturn) return;
router.replace(pendingImageReturn.returnUrl);
}, [router]);
async function handleOpenExternalBrowser(): Promise<void> {
setShowExternalBrowserDialog(false);
await openChatInExternalBrowser();