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)
This commit is contained in:
balibabu 2024-12-25 11:25:50 +08:00 committed by GitHub
parent bc3288d390
commit 61790ebe15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View File

@ -340,6 +340,7 @@ export const useUpdateNextConversation = () => {
});
if (data.code === 0) {
queryClient.invalidateQueries({ queryKey: ['fetchConversationList'] });
message.success(i18n.t(`message.modified`));
}
return data;
},

View File

@ -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,