Skip to content

Commit 20de7fe

Browse files
committed
release: v3.15.2
1 parent b88a394 commit 20de7fe

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

CHANGELOG.md

+29
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Changelog - v3
22

3+
## [v3.15.2] (Sep 6th, 2024)
4+
5+
### Features
6+
- 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.
7+
* How to use?
8+
```tsx
9+
<Sendbird
10+
eventHandlers={{
11+
message: {
12+
onSendMessageFailed: (message, error) => {
13+
// You can use the message parameter to create specific conditions
14+
if (message.isUserMessage()) {
15+
alert(`Message failed to send: ${error?.message}`);
16+
}
17+
},
18+
onUpdateMessageFailed: (message, error) => {
19+
console.log(`Failed to update message: ${message.messageId}, Error: ${error}`);
20+
},
21+
onFileUploadFailed: (error) => {
22+
console.error('File upload failed', error);
23+
},
24+
},
25+
}}
26+
```
27+
28+
### Fixes
29+
- 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.
30+
31+
332
## [v3.15.1] (Aug 29, 2024)
433

534
### Fixes

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sendbird/uikit-react",
3-
"version": "3.15.1",
3+
"version": "3.15.2",
44
"description": "Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.",
55
"keywords": [
66
"sendbird",

0 commit comments

Comments
 (0)