diff --git a/components/ask/hello.tsx b/components/ask/hello.tsx
index 9521295..99d9a2c 100644
--- a/components/ask/hello.tsx
+++ b/components/ask/hello.tsx
@@ -1,9 +1,8 @@
import { ThemedText } from "@/components/ThemedText";
-import { webSocketManager } from "@/lib/websocket-util";
import { Message } from "@/types/ask";
import { Dispatch, SetStateAction, useCallback, useRef } from "react";
import { useTranslation } from "react-i18next";
-import { StyleSheet, TouchableOpacity, useWindowDimensions, View } from 'react-native';
+import { Image, StyleSheet, TouchableOpacity, useWindowDimensions, View } from 'react-native';
import { createNewConversation } from "./utils";
interface AskHelloProps {
@@ -48,21 +47,21 @@ export default function AskHello({ setUserMessages, setConversationId, setIsHell
}
setConversationId(sessionId);
- try {
- if (webSocketManager && typeof (webSocketManager as any).send === 'function') {
- (webSocketManager as any).send({
- type: 'Chat',
- session_id: sessionId,
- message: text
- });
- } else {
- throw new Error('WebSocket manager is not ready');
- }
- } catch (wsErr) {
- console.error('WebSocket send failed:', wsErr);
- //
- setUserMessages(prev => prev.filter(item => item.content !== 'keepSearchIng'));
- }
+ // try {
+ // if (webSocketManager && typeof (webSocketManager as any).send === 'function') {
+ // (webSocketManager as any).send({
+ // type: 'Chat',
+ // session_id: sessionId,
+ // message: text
+ // });
+ // } else {
+ // throw new Error('WebSocket manager is not ready');
+ // }
+ // } catch (wsErr) {
+ // console.error('WebSocket send failed:', wsErr);
+ // //
+ // setUserMessages(prev => prev.filter(item => item.content !== 'keepSearchIng'));
+ // }
} catch (err) {
console.error('handleCase failed:', err);
//
@@ -89,9 +88,9 @@ export default function AskHello({ setUserMessages, setConversationId, setIsHell
{"\n"}
{t('ask.iAmMemo', { ns: 'ask' })}
- {/*
+
- */}
+
{t('ask.ready', { ns: 'ask' })}
{"\n"}