### 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
| }); | }); | ||||
| 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; | ||||
| }, | }, | 
| 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, |