github sendbird/sendbird-uikit-react v3.15.2
[v3.15.2] (Sep 6th, 2024)

latest releases: v3.15.8, v3.15.7, v3.15.6...
2 months ago

Features

  • Introduced new message event handlers for onSendMessageFailed,
    onUpdateMessageFailed, and onFileUploadFailed in the eventHandlers
    prop of the message input component. These handlers allow developers to
    respond to message send, update, and file upload failures.

    • How to use?
    <Sendbird
      eventHandlers={{
        message: {
          onSendMessageFailed: (message, error) => {
          // You can use the message parameter to create specific conditions
            if (message.isUserMessage()) {
              alert(`Message failed to send: ${error?.message}`);
            }
          },
          onUpdateMessageFailed: (message, error) => {
            console.error(`Failed to update message: ${message.messageId}, Error: ${error}`);
          },
          onFileUploadFailed: (error) => {
            console.error('File upload failed', error);
          },
        },
      }}

Fixes

  • Fixed an issue where the channel UI's scroll did not work after
    sending a new message. This issue was specific to the NextJS
    environment.

Don't miss a new sendbird-uikit-react release

NewReleases is sending notifications on new releases.