From 20de7fe0559199a57fabad24782784d74c57e345 Mon Sep 17 00:00:00 2001 From: Irene Ryu Date: Fri, 6 Sep 2024 13:56:41 +0900 Subject: [PATCH] release: v3.15.2 --- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cbab80f6..195b1e795 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog - v3 +## [v3.15.2] (Sep 6th, 2024) + +### 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? + ```tsx + { + // You can use the message parameter to create specific conditions + if (message.isUserMessage()) { + alert(`Message failed to send: ${error?.message}`); + } + }, + onUpdateMessageFailed: (message, error) => { + console.log(`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. + + ## [v3.15.1] (Aug 29, 2024) ### Fixes diff --git a/package.json b/package.json index c0d019366..b4e2e5dc1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sendbird/uikit-react", - "version": "3.15.1", + "version": "3.15.2", "description": "Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.", "keywords": [ "sendbird",