Releases: sendbird/sendbird-chat-sdk-javascript
Releases · sendbird/sendbird-chat-sdk-javascript
v4.17.1
Improvements
- Fixed a bug where closed WebSockets were not cleaned up when reconnecting
- Fixed a bug that the default value of
channelCustomType
works unexpectedly withMessageSearchQuery
- Improved sender profile update in super group channel
v4.17.0
Features
- Added new read-only property
messageDeletionTimestamp
on theGroupChannel
export default class GroupChannel extend BaseChannel {
...
// messageDeletionTimestamp is the message deletion timestamp from the message archive.
// At this point, groupChannel.messageDeletionTimestamp also has the updated value.
messageDeletionTimestamp: number = 0;
...
};
Improvements
- Fixed a bug Where don't get hidden channels in
BackgroundSync
v4.16.5
Improvements
- Fixed a bug where the last message in the channel would not be updated
v4.16.4
Improvements
- Fixed a bug that cached channel remains after channel deletion
v4.16.3
Improvements
- Added
AuthTokenType
to Enum Type
export enum AuthTokenType {
SESSION_TOKEN = 'session_token',
ACCESS_TOKEN = 'access_token',
}
- Added
authTokenType
parameter toauthenticate()
(Default Value: AuthTokenType.SESSION_TOKEN)
// using AccessToken
sb.authenticate('userId', 'access token', AuthTokenType.ACCESS_TOKEN);
// using SessionToken
sb.authenticate('userId', 'session token');
or
sb.authenticate('userId', 'session token', AuthTokenType.SESSION_TOKEN);
v4.16.2
Features
- Supports for
Poll
feature is added for all message types.- Added
poll
andapplyPoll(poll: Poll)
method inBaseMessage
. - Added
pollId
inFileMessageCreateParams
andMultipleFilesMessageCreateParams
.
- Added
Improvements
- Fixed a bug that the API fails while refreshing session
v4.16.1
Improvements
- Fixed a bug where excessive API calls in
MessageCollection
v4.16.0
Features
SDK now supports Custom Report Categories
configured through Sendbird Dashboard, which takes effect after restarting the app.
Previous report categories will remain until app restart.
- Added
getReportCategoryInfoList()
- Added
ReportCategoryInfo
- Deprecated
ReportCategory
const reportCategoryInfoList: ReportCategoryInfo[] = await sb.getReportCategoryInfoList();
...
reportCategoryInfoList.forEach((reportCategoryInfo) => {
// make Report Category list
// use reportCategoryInfo.name
});
Improvements
- Added
sampledUserInfoList
inReaction
- Fixed a bug where called API with deprecated param in
markAsDelivered
v4.15.0
Features
Added new properties in Reaction
to support more users
export default class Reaction {
...
// A list of sampled userIds that have reacted to this Reaction.
get sampledUserIds: string[]
// A count of the number of users who have reacted to this.
get count: number
// A flag indicating whether the current user has reacted to this.
get hasCurrentUserReacted: boolean
...
}
- Deprecated
userIds
inReaction
Improvements
- Fixed a bug where GET muted API is called every time
- Fixed a bug when autoresend started, did not update channel info
v4.14.6
Improvements
- Fixed a bug where
expiring_session=true
regardless of whetherSessionHandler
is registered whenauthToken
exists - Fixed typo in
markPushNotificationAsClicked
logs