소스 검색

fix: chat on start bug (#1588)

Joel 1 년 전
부모
커밋
b23de4affc
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      web/app/components/explore/universal-chat/index.tsx
  2. 1 1
      web/app/components/share/chat/index.tsx

+ 1 - 0
web/app/components/explore/universal-chat/index.tsx

@@ -688,6 +688,7 @@ const Main: FC<IMainProps> = () => {
         onUnpin={handleUnpin}
         controlUpdateList={controlUpdateConversationList}
         onDelete={handleDelete}
+        onStartChat={() => handleConversationIdChange('-1')}
       />
     )
   }

+ 1 - 1
web/app/components/share/chat/index.tsx

@@ -668,7 +668,7 @@ const Main: FC<IMainProps> = ({
         onUnpin={handleUnpin}
         controlUpdateList={controlUpdateConversationList}
         onDelete={handleDelete}
-        onStartChat={handleStartChat}
+        onStartChat={() => handleConversationIdChange('-1')}
       />
     )
   }