Releases: sendbird/sendbird-chat-sdk-javascript
Releases · sendbird/sendbird-chat-sdk-javascript
v4.9.9
Notification
- Added
authenticateFeed()inSendbirdChatto log in without connection - Added
refreshNotificationCollections()inSendbirdChatto manually catch up the recent updates - Added
notificationDatainBaseMessage
Improvements
- Fixed a bug that reconnection hangs for deactivated user
- Fixed bug not parsing for string array type thumbnails
- Fixed a bug where message parsing throws the wrong exception
v4.9.8
v4.9.8 (Aug 9, 2023)
Features
- Added
BaseChannel.copyMessage()that supports user, file, and multiple files message - Added
BaseChannel.resendMessage()that supports user, file, and multiple files message
// Copy a succeeded multiple files message.
channelA.copyMessage(channelB, multipleFilesMessageToCopy)
.onPending((message: MultipleFilesMessage) => {
// ...
})
.onFailed((err: SendbirdError, message: MultipleFilesMessage) => {
// ...
})
.onSucceeded((message: MultipleFilesMessage) => {
// ...
});
// Resend a failed or canceled multiple files message.
channel.resendMessage(failedOrCanceledMultipleFilesMessage)
.onPending((message: MultipleFilesMessage) => {
// ...
})
.onFailed((err: SendbirdError, message: MultipleFilesMessage) => {
// ...
})
.onSucceeded((message: MultipleFilesMessage) => {
// ...
})
.onFileUploaded((
requestId: string,
index: number,
uploadableFileInfo: UploadableFileInfo,
err?: Error
) => {
// ...
});Deprecated
- Deprecated
BaseChannel.copyUserMessage() - Deprecated
BaseChannel.copyFileMessage() - Deprecated
BaseChannel.resendUserMessage() - Deprecated
BaseChannel.resendFileMessage()
Improvements
- Changed
MessageHandler,FailedMessageHandler,MessageRequestHandler, andMultipleFilesMessageRequestHandlerto have generic message type - Fixed the bug where reply messages were not being automatically resent
- Fixed the bug where initializing the message collection without result handler throws an error
- Fixed the bug where message collection updating the left group channel
- Added
createdAfterandcreatedBeforefilters inGroupChannelListQuery
v4.9.7
v4.9.7 (Aug 3, 2023)
Improvements
- Fixed a bug where
HugeGabCheckinMessageCollectionhas missed some filters
v4.9.6
Notifications
- Added
FeedChannelModuleFeedChannelModulecould be imported from@sendbird/chat/feedChannel- Added
createMyFeedChannelListQuery()to createFeedChannelListQuery - Added
getChannel(),getMyFeedChannelChangeLogsByTimestamp(),getMyFeedChannelChangeLogsByToken()to fetchFeedChanneldata - Added
getGlobalNotificationChannelSetting()to get notification settings - Added
getNotificationTemplateListByToken(),getNotificationTemplate()to fetchNotificationTemplate
- Added
FeedChannelHandler - Added
FeedChannel- Added
FEEDchannel type - Added
createNotificationCollection()to createNotificationCollection - Added
refresh()to refresh the feed channel - Added
markAsRead()
- Added
- Added
FeedChannelListQuery - Added
NotificationCollectionNotificationCollectionacts as same asMessageCollection
- Added
isChatNotificationinGroupChannel - Added
includeChatNotificationinGroupChannelListQuery,GroupChannelListParams,GroupChannelChangeLogsParams - Added
notificationInfoinAppInfo - Added
onTotalUnreadMessageCountChangedinUserEventHandler- Deprecated
onTotalUnreadMessageCountUpdatedinUserEventHandler
- Deprecated
Improvements
- Added meta data and meta counter related event to pass to
GroupChannelCollection - Fixed a bug in parsing parent message info
- Fixed a bug where a deactivated or deleted user hangs on reconnect
- Fixed a bug where the removed metadata would not be updated when receiving the channel's metadata from the server
- Improved stability
v4.9.5
v4.9.5 (July 27, 2023)
Improvements
- Fixed bug when received
CHANNEL_INVITEevent inviter is null - Updated
MessageCollectionEventHandlermembers to be optional
v4.9.4
v4.9.4 (July 21, 2023)
Improvements
- Added
EVENT_CHANNEL_BANNEDtoGroupchannelEventSource - Changed
errthe argument ofFailedMessageHandlerto not nullable type - Changed return value type of
sb.connect()to not nullable type - Fixed a bug where don't get channel Info in Cache in
GroupChannelCollection - Fixed a bug where return empty result in
loadPreviousinMessageCollection - Fixed a bug where HugeGap check in
MessageCollection - Fixed a bug where
Poll.applyPollVoteEvent()not updatingPoll.voterCount - Fixed a bug where the group channel changelogs did not update the group channel metadata
- Improved stability
v4.9.4-rc.1
v4.9.4-rc.0
v4.9.3
v4.9.3 (Jun 22, 2023)
Improvements
- Fixed a bug where
sb.connect()fails whenlocalCacheEnabledset to false in browsers with disabled Cookies - Fixed a bug where
GroupChannelCollectiondisplays channels in wrong order forGroupChannelListOrder.LATEST_LAST_MESSAGE
v4.9.2
IMPORTANT NOTICE
- JS Chat SDK version `4.9.1` and `4.9.2` has a CRTICAL BUG where FileMessage is NOT received when sent from an Android device. Please SKIP version `4.9.0` and `4.9.1`, and update to version `4.9.2` or above instead.
Improvements
- Fixed a bug where FileMessage is sent as a MultipleFilesMessage