Browse Source

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)
tags/v0.15.1
balibabu 10 months ago
parent
commit
61790ebe15
No account linked to committer's email address
2 changed files with 1 additions and 1 deletions
  1. 1
    0
      web/src/hooks/chat-hooks.ts
  2. 0
    1
      web/src/pages/chat/hooks.ts

+ 1
- 0
web/src/hooks/chat-hooks.ts 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;
},

+ 0
- 1
web/src/pages/chat/hooks.ts 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,

Loading…
Cancel
Save