Skip to content

Commit

Permalink
Fix: Rename chat name, missing field 'avatar' #4125 (#4221)
Browse files Browse the repository at this point in the history
### 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)
  • Loading branch information
cike8899 authored Dec 25, 2024
1 parent bc3288d commit 61790eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions web/src/hooks/chat-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ export const useUpdateNextConversation = () => {
});
if (data.code === 0) {
queryClient.invalidateQueries({ queryKey: ['fetchConversationList'] });
message.success(i18n.t(`message.modified`));
}
return data;
},
Expand Down
1 change: 0 additions & 1 deletion web/src/pages/chat/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 61790eb

Please sign in to comment.