diff --git a/src/ChatItem/index.tsx b/src/ChatItem/index.tsx index 7e21ab8..670e905 100644 --- a/src/ChatItem/index.tsx +++ b/src/ChatItem/index.tsx @@ -109,7 +109,7 @@ const ChatItem = memo((props) => { if (chatItemRenderConfig?.titleRender === false) return null; const dom = ; return chatItemRenderConfig?.titleRender?.(props, dom) || dom; - }, [time]); + }, [time, avatar]); if (chatItemRenderConfig?.render === false) return null; diff --git a/src/ChatList/ChatListItem.tsx b/src/ChatList/ChatListItem.tsx index f6f8e34..d0218f1 100644 --- a/src/ChatList/ChatListItem.tsx +++ b/src/ChatList/ChatListItem.tsx @@ -230,7 +230,7 @@ const Item = (props: ChatListItemProps) => { /> ); return dom; - }, [props.content, props.loading, props.id, item.updateAt || item.createAt]); + }, [props.content, props.loading, props.id, (item as any).meta, item.updateAt || item.createAt]); if (RenderItem) return <RenderItem key={item.id} {...props} />;