Update conversation-dropdown.tsx

This commit is contained in:
Kevin Hu 2025-11-24 09:42:00 +08:00 committed by GitHub
parent 9cea04b114
commit c418da0ac5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,6 @@ export function ConversationDropdown({
const { removeConversation } = useRemoveConversation();
const handleDelete: MouseEventHandler<HTMLDivElement> = useCallback(() => {
// 如果是临时对话is_new 为 true则使用前端删除逻辑
if (conversation.is_new && removeTemporaryConversation) {
removeTemporaryConversation(conversation.id);
removeConversation([]);