瀏覽代碼

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}
         onUnpin={handleUnpin}
         controlUpdateList={controlUpdateConversationList}
         controlUpdateList={controlUpdateConversationList}
         onDelete={handleDelete}
         onDelete={handleDelete}
+        onStartChat={() => handleConversationIdChange('-1')}
       />
       />
     )
     )
   }
   }

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

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