Skip to content

Commit

Permalink
🐛 fix: slove chatItemRenderConfig render not work use Default dom (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
ONLY-yours authored Feb 2, 2024
1 parent 6c2e149 commit a5763fd
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/ChatItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,18 @@ const ChatItem = memo<ChatItemProps>((props) => {
{mobile && type === 'block' && <BorderSpacing borderSpacing={MOBILE_AVATAR_SIZE} />}
</Flexbox>
);
return chatItemRenderConfig?.render?.(
props,
{
avatar: avatarDom,
messageContent: messageContentDom,
actions: actionsDom,
title: titleDom,
return (
chatItemRenderConfig?.render?.(
props,
{
avatar: avatarDom,
messageContent: messageContentDom,
actions: actionsDom,
title: titleDom,
itemDom,
},
itemDom,
},
itemDom,
) || itemDom
);
});

Expand Down

0 comments on commit a5763fd

Please sign in to comment.