Skip to content

Commit

Permalink
release: v3.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AhyoungRyu committed Sep 6, 2024
1 parent b88a394 commit 20de7fe
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
<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.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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 20de7fe

Please sign in to comment.