Explorar el Código

fix: chat on start bug (#1588)

Joel hace 1 año
padre
commit
b23de4affc

+ 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')}
       />
     )
   }