Released version 1.42.0 of the ChatKitty JavaScript SDK

Adds support for message groups. Set a message group tag for messages grouped together for text messages using

await kitty.sendMessage({
  channel: channel,
  body: 'Hello, world!',
  groupTag: 'UNIQUE_MESSAGE_GROUP_TAG'
});

And for file messages using

await kitty.sendMessage({
  channel: channel,
  file: file,
  groupTag: 'UNIQUE_MESSAGE_GROUP_TAG',
  progressListener: {
    onStarted: () => {
      // Handle file upload started
    },

    onProgress: (progress) => {
      // Handle file upload process
    },

    onCompleted: (result) => {
      // Handle file upload completed
    },
  },
});

Use the groupTag message property to group individual messages together into a composite message UI component.