Skip to main content

Grouped Messages

This example showcases a chat that groups consecutive messages from the same user. The ItemContent component receives the nextData and prevData props, which allow you to determine the position of the message in the conversation. Based on the position, the message is styled differently to indicate the start, middle, or end of a message group.

You can use similar approach to render the users' avatars only once per group, or to display the message timestamp at the top of the group.

loading...