Skip to content

Commit 1a8ab3f

Browse files
authored
Merge pull request #52 from sendbird/stable
back merge
2 parents 75daf75 + d12ada8 commit 1a8ab3f

35 files changed

+60
-40
lines changed

Diff for: CHANGELOG.md

+28-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## v4.17.2 (Mar 28, 2025)
3+
### **Improvements**
4+
- Fixed a bug that can't resend a failed `MultipleFilesMessage`
25

36
## v4.17.1 (Mar 13, 2025)
47
### **Improvements**
@@ -51,6 +54,7 @@
5154

5255
sb.authenticate('userId', 'session token', AuthTokenType.SESSION_TOKEN);
5356
```
57+
5458
## v4.16.2 (Jan 09, 2025)
5559
### **Features**
5660
- Supports for `Poll` feature is added for all message types.
@@ -59,9 +63,11 @@
5963

6064
### **Improvements**
6165
- Fixed a bug that the API fails while refreshing session
66+
6267
## v4.16.1 (Dec 05, 2024)
6368
### **Improvements**
6469
- Fixed a bug where excessive API calls in `MessageCollection`
70+
6571
## v4.16.0 (Nov 20, 2024)
6672
### **Features**
6773
SDK now supports `Custom Report Categories` configured through Sendbird Dashboard, which takes effect after restarting the app.
@@ -86,6 +92,7 @@ Previous report categories will remain until app restart.
8692
### **Improvements**
8793
- Added `sampledUserInfoList` in `Reaction`
8894
- Fixed a bug where called API with deprecated param in `markAsDelivered`
95+
8996
## v4.15.0 (Nov 07, 2024)
9097
### **Features**
9198
Added new properties in `Reaction` to support more users
@@ -111,23 +118,29 @@ Added new properties in `Reaction` to support more users
111118
### **Improvements**
112119
- Fixed a bug where GET muted API is called every time
113120
- Fixed a bug when autoresend started, did not update channel info
121+
114122
## v4.14.6 (Oct 24, 2024)
115123
### **Improvements**
116124
- Fixed a bug where `expiring_session=true` regardless of whether `SessionHandler` is registered when `authToken` exists
117125
- Fixed typo in `markPushNotificationAsClicked` logs
126+
118127
## v4.14.5 (Oct 14, 2024)
119128
### **Improvements**
120129
- Added `message` property in `FileMessageCreateParams`
121130
- Added `message` property in `FileMessage`
131+
122132
## v4.14.4 (Sep 27, 2024)
123133
### **Improvements**
124134
- Fixed a bug that local cache data is broken in a certain condition
135+
125136
## v4.14.3 (Sep 13, 2024)
126137
### **Improvements**
127138
- Fixed a bug where there was no mentionedUser when sending a message with mentionedUserId as CopyMessage
139+
128140
## v4.14.2 (Aug 29, 2024)
129141
### **Improvements**
130142
- Improvement stability
143+
131144
## v4.14.1 (Aug 14, 2024)
132145
### **Improvements**
133146
- Deprecated `customTypeFilters` in `UnreadItemCountParams`
@@ -143,15 +156,14 @@ Support `pinned message` in `OpenChannel`
143156
- Added `lastPinnedMessage` property in `OpenChannel`
144157
- Added `onPinnedMessageUpdated` in `OpenChannelHandler`
145158

146-
147159
### **Improvements**
148160
- Added `customTypeFilters` in `UnreadItemCountParams`
149-
## v4.13.3 (Aug 01, 2024)
150161

162+
## v4.13.3 (Aug 01, 2024)
151163
### **Improvements**
152164
- Fixed a build error related to Node.js package inclusion
153-
## v4.13.2 (Jul 31, 2024)
154165

166+
## v4.13.2 (Jul 31, 2024)
155167
### **Improvements**
156168
- Added `hasBot` and `hasAiBot` in `GroupChannel`
157169
- Added `version` to `MessageForm`
@@ -161,11 +173,10 @@ Support `pinned message` in `OpenChannel`
161173
- Improved Message delivery speed in MessageCollection Initialize
162174

163175
## v4.13.1 (Jul 08, 2024)
164-
165176
### **Improvements**
166177
- Fixed a bug in `MessageForm` to support backward compatibility
167-
## v4.13.0 (Jul 03, 2024)
168178

179+
## v4.13.0 (Jul 03, 2024)
169180
### **Feature**
170181
SDK now supports `MessageForm`! Form message can only be sent through AI Chatbot in Sendbird dashboard.
171182
- Added `MessageForm`
@@ -199,35 +210,42 @@ SDK now supports `MessageForm`! Form message can only be sent through AI Chatbot
199210
## v4.12.8 (Jun 20, 2024)
200211
### **Improvement**
201212
- Added `includeMetaData` to `GroupChannelFilter`
213+
202214
## v4.12.7 (Jun 05, 2024)
203215
### **Improvement**
204216
- Fixed the Feedback feature to function correctly
205217
- Fixed a bug where `groupChannel.cachedMetadata` was returned as `undefined` in the result value of `ChangeLogs`
218+
206219
## v4.12.6 (May 28, 2024)
207220
### **Improvement**
208221
- Fixed a bug that always throws a `Connection is canceled` error when `connect()` is failed
209222
- Fixed a bug where `SessionRefreshed()` was called twice
210223
- Fixed a bug where SessionHandler callback is called when `connect()` is failed
211224
- Fixed a bug inconsistent count of joined channels
212225
- Improved stability
226+
213227
## v4.12.5 (May 22, 2024)
214228
### **Improvement**
215229
- Fixed a bug that pending `MultipleFilesMessage` has empty `data`
216230
- Fixed a bug that `loadMore()` in `GroupChannelCollection` gives less channels in a certain condition
217231
- Improved stability
232+
218233
## v4.12.4 (May 16, 2024)
219234
### **Improvement**
220235
- Added `useMMKVStorageStore` to `SendbirdChatParams`
221236
- Deprecated `useAsyncStorageStore` in `SendbirdChatParams`
222237
- Fixed a bug that `connect()` call may crash in a certain condition
223238
- Fixed a bug that `MultipleFilesMessage` has wrong `data` value
224239
- Improved stability
240+
225241
## v4.12.3 (Apr 19, 2024)
226242
### **Improvement**
227243
- Fixed a bug when called `resetMyHistory()`, messages in the cache aren't deleted
244+
228245
## v4.12.2 (Apr 17, 2024)
229246
### **Improvement**
230247
- Added ErrorCode(`USER_DEACTIVATED`) in Message Resendable Condition
248+
231249
## v4.12.1 (Apr 11, 2024)
232250
### **Features**
233251
- Added additional parameters in `GroupChannelEventContext`
@@ -236,6 +254,7 @@ SDK now supports `MessageForm`! Form message can only be sent through AI Chatbot
236254
- Fixed a bug that `lastMessage` not updating on reply
237255
- Fixed a bug that database upgrade fails in certain environment
238256
- Improvement stability
257+
239258
## v4.12.0 (Mar 25, 2024)
240259
### **Improvement**
241260
- Added `markPushNotificationAsDelivered`
@@ -247,11 +266,13 @@ SDK now supports `MessageForm`! Form message can only be sent through AI Chatbot
247266
- Fixed a bug that `onMessagesUpdated` event not firing on ThreadInfo updated event
248267
- Exported `SendbirdErrorCode`
249268
- Improvement stability
269+
250270
## v4.11.3 (Mar 14, 2024)
251271
### **Improvement**
252272
- Added `keys` property to `MessageTemplateListParams`
253273
- Fixed a bug that database migration fails in a certain condition
254274
- Improvement stability
275+
255276
## v4.11.2 (Mar 08, 2024)
256277
### **Improvement**
257278
- Fixed a bug that `markAsRead()` with messages does not trigger any event in `NotificationCollection`
@@ -260,6 +281,7 @@ SDK now supports `MessageForm`! Form message can only be sent through AI Chatbot
260281
### **Improvement**
261282
- Fixed a bug that `markAsRead()` with messages wrongly signals updating messages in `NotificationCollection`
262283
- Improvement stability
284+
263285
## v4.11.0 (Feb 28, 2024)
264286
### **Features**
265287
### MessageTemplate
@@ -275,8 +297,6 @@ Message templates created via platform API can be fetched with `getMessageTempla
275297
### **Improvement**
276298
- Fixed a bug where channel list of `GroupChannelCollection` was not removed when leaving a public group
277299
- Added get message template feature
278-
- Improvement stability
279-
### **Improvement**
280300
- Fixed a bug where `thumbnails` are not being set properly
281301
- Improvement stability
282302

@@ -297,7 +317,6 @@ Message templates created via platform API can be fetched with `getMessageTempla
297317
- Fixed a bug with markAsRead() error in a certain condition
298318
- Improvement stability
299319

300-
301320
## v4.10.8 (Feb 2, 2024)
302321
### **Improvement**
303322
- Fixed a bug where `onMentionReceived` event is called when a mention is deleted
@@ -364,6 +383,7 @@ Message templates created via platform API can be fetched with `getMessageTempla
364383
- Fixed bug where `is_reply_to_channel` parsing error in `BaseMessage`
365384
- Fixed bug where `onMessagesUpdated()` event do not called if `localCacheEnable` is `false`
366385
- Improvement stability
386+
367387
## v4.10.4 (Nov 16, 2023)
368388
### **Improvement**
369389
- Fixed a bug of flooded cache in React Native

Diff for: cjs/feedChannel.cjs

+1-1
Large diffs are not rendered by default.

Diff for: cjs/groupChannel.cjs

+1-1
Large diffs are not rendered by default.

Diff for: cjs/index.cjs

+1-1
Large diffs are not rendered by default.

Diff for: cjs/lib/__bundle-cb4f4d03.cjs renamed to cjs/lib/__bundle-2dd7513b.cjs

+1-1
Large diffs are not rendered by default.

Diff for: cjs/lib/__bundle-3ec7234c.cjs

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
var o=require("./__bundle-64a7bbb4.cjs");exports.BaseChannelHandlerParams=class{constructor(){this.onUserMuted=o.noop,this.onUserUnmuted=o.noop,this.onUserBanned=o.noop,this.onUserUnbanned=o.noop,this.onChannelChanged=o.noop,this.onChannelDeleted=o.noop,this.onChannelFrozen=o.noop,this.onChannelUnfrozen=o.noop,this.onOperatorUpdated=o.noop,this.onChannelMemberCountChanged=o.noop,this.onMetaDataCreated=o.noop,this.onMetaDataUpdated=o.noop,this.onMetaDataDeleted=o.noop,this.onMetaCounterCreated=o.noop,this.onMetaCounterUpdated=o.noop,this.onMetaCounterDeleted=o.noop,this.onMessageReceived=o.noop,this.onMessageUpdated=o.noop,this.onMessageDeleted=o.noop,this.onMentionReceived=o.noop,this.onReactionUpdated=o.noop,this.onThreadInfoUpdated=o.noop}};
1+
var o=require("./__bundle-d8cddc82.cjs");exports.BaseChannelHandlerParams=class{constructor(){this.onUserMuted=o.noop,this.onUserUnmuted=o.noop,this.onUserBanned=o.noop,this.onUserUnbanned=o.noop,this.onChannelChanged=o.noop,this.onChannelDeleted=o.noop,this.onChannelFrozen=o.noop,this.onChannelUnfrozen=o.noop,this.onOperatorUpdated=o.noop,this.onChannelMemberCountChanged=o.noop,this.onMetaDataCreated=o.noop,this.onMetaDataUpdated=o.noop,this.onMetaDataDeleted=o.noop,this.onMetaCounterCreated=o.noop,this.onMetaCounterUpdated=o.noop,this.onMetaCounterDeleted=o.noop,this.onMessageReceived=o.noop,this.onMessageUpdated=o.noop,this.onMessageDeleted=o.noop,this.onMentionReceived=o.noop,this.onReactionUpdated=o.noop,this.onThreadInfoUpdated=o.noop}};
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
var e=require("./__bundle-64a7bbb4.cjs");exports.xmlHttpRequest=(r,s)=>new Promise(((t,o)=>{if("undefined"!=typeof XMLHttpRequest){const{dispatcher:n,logger:d}=e.Vault.of(r),{requestId:a,method:i,url:u,headers:p={},data:c="",uploadProgressHandler:l}=s;let m=!1;const E=new XMLHttpRequest;E.open(i,u),Object.keys(p).forEach((e=>{E.setRequestHeader(e,p[e])})),l&&E.upload.addEventListener("progress",(e=>{e.lengthComputable?l(a,e.loaded,e.total):d.debug("Progress computing failed: `Content-Length` header is not given.")})),E.onabort=()=>{o(e.SendbirdError.requestCanceled)},E.onerror=r=>{o(e.SendbirdError.networkError)},E.onreadystatechange=()=>{if(E.readyState===XMLHttpRequest.DONE&&!m)if(0===E.status||E.status>=200&&E.status<400)try{const s=JSON.parse(E.responseText);t(new e.APIResponseCommand(r,s))}catch(r){o(e.SendbirdError.networkError)}else try{const r=JSON.parse(E.responseText);if(r){const s=new e.SendbirdError(r);if(s.isSessionExpiredError){if(n.dispatch(new e.SessionExpiredCommand({reason:s.code,message:s.message})),!(E instanceof e.SessionRefreshAPICommand)){const r=new e.Deferred;return n.dispatch(new e.RequestResendCommand({request:E,deferred:r,error:s})),r.promise}}else s.isSessionInvalidatedError&&n.dispatch(new e.SessionExpiredCommand({reason:s.code,message:s.message}));o(s)}else o(e.SendbirdError.requestFailed)}catch(r){o(e.SendbirdError.requestFailed)}},n.on((r=>{r instanceof e.CancelXMLHttpRequestCommand&&(r.requestId&&r.requestId!==a||(m=!0,E.abort()))})),E.send(c)}else o(e.SendbirdError.xmlHttpRequestNotSupported)}));
1+
var e=require("./__bundle-d8cddc82.cjs");exports.xmlHttpRequest=(r,s)=>new Promise(((t,o)=>{if("undefined"!=typeof XMLHttpRequest){const{dispatcher:n,logger:d}=e.Vault.of(r),{requestId:a,method:i,url:u,headers:p={},data:c="",uploadProgressHandler:l}=s;let m=!1;const E=new XMLHttpRequest;E.open(i,u),Object.keys(p).forEach((e=>{E.setRequestHeader(e,p[e])})),l&&E.upload.addEventListener("progress",(e=>{e.lengthComputable?l(a,e.loaded,e.total):d.debug("Progress computing failed: `Content-Length` header is not given.")})),E.onabort=()=>{o(e.SendbirdError.requestCanceled)},E.onerror=r=>{o(e.SendbirdError.networkError)},E.onreadystatechange=()=>{if(E.readyState===XMLHttpRequest.DONE&&!m)if(0===E.status||E.status>=200&&E.status<400)try{const s=JSON.parse(E.responseText);t(new e.APIResponseCommand(r,s))}catch(r){o(e.SendbirdError.networkError)}else try{const r=JSON.parse(E.responseText);if(r){const s=new e.SendbirdError(r);if(s.isSessionExpiredError){if(n.dispatch(new e.SessionExpiredCommand({reason:s.code,message:s.message})),!(E instanceof e.SessionRefreshAPICommand)){const r=new e.Deferred;return n.dispatch(new e.RequestResendCommand({request:E,deferred:r,error:s})),r.promise}}else s.isSessionInvalidatedError&&n.dispatch(new e.SessionExpiredCommand({reason:s.code,message:s.message}));o(s)}else o(e.SendbirdError.requestFailed)}catch(r){o(e.SendbirdError.requestFailed)}},n.on((r=>{r instanceof e.CancelXMLHttpRequestCommand&&(r.requestId&&r.requestId!==a||(m=!0,E.abort()))})),E.send(c)}else o(e.SendbirdError.xmlHttpRequestNotSupported)}));

0 commit comments

Comments
 (0)