From 61790ebe1520ec82578b1dbb28945df9882716d2 Mon Sep 17 00:00:00 2001 From: balibabu Date: Wed, 25 Dec 2024 11:25:50 +0800 Subject: [PATCH] Fix: Rename chat name, missing field 'avatar' #4125 (#4221) ### What problem does this PR solve? Fix: Rename chat name, missing field 'avatar' #4125 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/hooks/chat-hooks.ts | 1 + web/src/pages/chat/hooks.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/hooks/chat-hooks.ts b/web/src/hooks/chat-hooks.ts index f8f7f2d1a..843a9e70c 100644 --- a/web/src/hooks/chat-hooks.ts +++ b/web/src/hooks/chat-hooks.ts @@ -340,6 +340,7 @@ export const useUpdateNextConversation = () => { }); if (data.code === 0) { queryClient.invalidateQueries({ queryKey: ['fetchConversationList'] }); + message.success(i18n.t(`message.modified`)); } return data; }, diff --git a/web/src/pages/chat/hooks.ts b/web/src/pages/chat/hooks.ts index 6bf45c6c2..13140c68c 100644 --- a/web/src/pages/chat/hooks.ts +++ b/web/src/pages/chat/hooks.ts @@ -535,7 +535,6 @@ export const useRenameConversation = () => { const onConversationRenameOk = useCallback( async (name: string) => { const ret = await updateConversation({ - ...conversation, conversation_id: conversation.id, name, is_new: false,