balibabu commited on
Commit
d33a1af
·
1 Parent(s): 94d909f

Fix: Rename chat name, missing field 'avatar' #4125 (#4221)

Browse files

### 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 CHANGED
@@ -340,6 +340,7 @@ export const useUpdateNextConversation = () => {
340
  });
341
  if (data.code === 0) {
342
  queryClient.invalidateQueries({ queryKey: ['fetchConversationList'] });
 
343
  }
344
  return data;
345
  },
 
340
  });
341
  if (data.code === 0) {
342
  queryClient.invalidateQueries({ queryKey: ['fetchConversationList'] });
343
+ message.success(i18n.t(`message.modified`));
344
  }
345
  return data;
346
  },
web/src/pages/chat/hooks.ts CHANGED
@@ -535,7 +535,6 @@ export const useRenameConversation = () => {
535
  const onConversationRenameOk = useCallback(
536
  async (name: string) => {
537
  const ret = await updateConversation({
538
- ...conversation,
539
  conversation_id: conversation.id,
540
  name,
541
  is_new: false,
 
535
  const onConversationRenameOk = useCallback(
536
  async (name: string) => {
537
  const ret = await updateConversation({
 
538
  conversation_id: conversation.id,
539
  name,
540
  is_new: false,