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

}); });
if (data.code === 0) { if (data.code === 0) {
queryClient.invalidateQueries({ queryKey: ['fetchConversationList'] }); queryClient.invalidateQueries({ queryKey: ['fetchConversationList'] });
message.success(i18n.t(`message.modified`));
} }
return data; return data;
}, },

+ 0
- 1
web/src/pages/chat/hooks.ts View File

const onConversationRenameOk = useCallback( const onConversationRenameOk = useCallback(
async (name: string) => { async (name: string) => {
const ret = await updateConversation({ const ret = await updateConversation({
...conversation,
conversation_id: conversation.id, conversation_id: conversation.id,
name, name,
is_new: false, is_new: false,

Loading…
Cancel
Save