fix(chat): return directly to paid image
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user