@sendbird/chat
Advanced tools
Changelog
v4.16.3 (Jan 16, 2025)
AuthTokenType
to Enum Type export enum AuthTokenType {
SESSION_TOKEN = 'session_token',
ACCESS_TOKEN = 'access_token',
}
authTokenType
parameter to authenticate()
(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);
Changelog
v4.16.2 (Jan 09, 2025)
Poll
feature is added for all message types.
poll
and applyPoll(poll: Poll)
method in BaseMessage
.pollId
in FileMessageCreateParams
and MultipleFilesMessageCreateParams
.Changelog
v4.16.1 (Dec 05, 2024)
MessageCollection
Changelog
v4.16.0 (Nov 20, 2024)
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.
getReportCategoryInfoList()
ReportCategoryInfo
ReportCategory
const reportCategoryInfoList: ReportCategoryInfo[] = await sb.getReportCategoryInfoList();
...
reportCategoryInfoList.forEach((reportCategoryInfo) => {
// make Report Category list
// use reportCategoryInfo.name
});
sampledUserInfoList
in Reaction
markAsDelivered
Changelog
v4.15.0 (Nov 07, 2024)
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
...
}
userIds
in Reaction
Changelog
v4.14.6 (Oct 24, 2024)
expiring_session=true
regardless of whether SessionHandler
is registered when authToken
existsmarkPushNotificationAsClicked
logsChangelog
v4.14.5 (Oct 14, 2024)
message
property in FileMessageCreateParams
message
property in FileMessage
Changelog
v4.14.4 (Sep 27, 2024)