Releases: sendbird/sendbird-chat-sdk-javascript
Releases · sendbird/sendbird-chat-sdk-javascript
v4.16.4
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
v4.14.5
Improvements
- Added
message
property inFileMessageCreateParams
- Added
message
property inFileMessage
v4.14.4
Improvements
- Fixed a bug that local cache data is broken in a certain condition
v4.14.3
Improvements
- Fixed a bug where there was no mentionedUser when sending a message with mentionedUserId as CopyMessage