Releases: sendbird/sendbird-chat-sdk-javascript
Releases · sendbird/sendbird-chat-sdk-javascript
v4.10.5
Improvement
- Added
prevResultLimit/nextResultLimitinBaseMessageCollectionParams
/**
* @param limit Deprecated since v4.10.5. Use prevResultLimit/nextResultLimit instead.
*/
groupChannel.createMessagecollection( { limit: 10 } );
// or
groupChannel.createMessageCollection({ prevResultLimit: 5, nextResultLimit: 5, });- Added constructor in
MessageFilter/GroupChannelFilter
const filter: MessageFilter = new MessageFilter();
filter.senderUserIdsFilter = [ ... ];
// or
const filter:MessageFilter = new MessageFilter({
senderUserIdsFilter: [ ... ],
...
});
groupChannel.createMessagecollection( { filter } ); const filter:GroupChannelFilter = new GroupChannelFilter();
filter.includeEmpty = true;
// or
const filter:GroupChannelFilter = new GroupChannelFilter({
includeEmpty: true,
...
});
sb.groupChannel.createGroupChannelCollection({ filter });- Added
markAsRead(messages: NotificationMessage[])inFeedChannel - (internal) Removed
markAsReadBy(messages: NotificationMessage[])inFeedChannel - Fixed bug where
is_reply_to_channelparsing error inBaseMessage - Fixed bug where
onMessagesUpdated()event do not called iflocalCacheEnableisfalse - Improvement stability
v4.10.4
v4.10.3
v4.10.2
Improvements
- Fixed a bug where an exception wasn't thrown during
connection()
v4.10.1
Features
Introduced the extended_message_payload field to the messagePrototype
It simplifies the process by returning Record<{ [string]: any }>, eliminating the need to stringify values like extended_message. This improvement enhances the functionality of the AI chat bot, particularly in areas such as forms, suggested_replies, and custom_views.
Improvements
- Added
markAsClicked()in FeedChannel - Updated interface of
markAsReadBy()inFeedChannelto takemessagesas a parameter - Updated interface of
logImpression()inFeedChannelto takemessagesas a parameter - Fixed a bug where
groupChannel.upsert - Fixed a bug where
getMessageCommandparsing error - Fixed a bug where an
unhandled exception - (internal) Fixed a bug where
SessionRefreshAPIResponseCommandparsing
v4.10.0
Features
- Added new read-only attribute
messageReviewInfoon theUserMessage
export default class UserMessage {
...
// exist only if the message is in review or it has been approved
readonly messageReviewInfo: MessageReviewInfo?
...
}
export default class MessageReviewInfo {
readonly status: MessageReviewStatus;
readonly originalMessageInfo?: OriginalMessageInfo; // (exist only if the status is approved)
...
}
export enum MessageReviewStatus {
INREVIEW = 'InReview',
APPROVED = 'Approved',
}
export interface OriginalMessageInfo {
createdAt: number;
messageId: number;
}- Added
getDeliveryStatus(includeAllMembers = true)interface
Improvements
- Fixed a bug where a session refresh error occurred repeatedly
- Fixed a bug where
uploadableFileInfo.fileUrldoes not include auth value when auth is required internally - (internal) Fixed a bug that channel refresh not triggering
onChannelUpdatedevent- Please use changelog instead for improved stability
- Fixed a bug that
connect()timed out in a certain case
v4.9.14
Notification
- Added
messageStatusinNotificationMessage - Added
markAsReadBy(notificationIds)inFeedChannel - Added
logImpression(notificationIds)inFeedChannel
Improvements
- Fixed a bug that
MessageCollectionhas wronghasPreviousandhasNextin a certain condition - Fixed a bug that
groupChannel.refresh()does not triggeronChannelUpdatedinMessageCollection - Fixed a bug that
metaArraysparameter does not work inupdateUserMessage()andupdateFileMessage()
v4.9.13
v4.9.12
Notifications
- Added
NotificationMessageNotificationMessageusesnotificationIdas key instead ofmessageIdFeedChannelto haveNotificationMessageaslastMessage
Improvements
- Fixed a bug that
markAsRead()fails withauthenticateFeed() - Fixed a bug that
onSessionClosed()is called unintentionally
v4.9.11
Improvements
- Fixed a bug that session refreshes even if the session is revoked or deactivated
- Improvement stability