Skip to content

Releases: sendbird/sendbird-chat-sdk-javascript

v4.9.10

30 Aug 17:00
Compare
Choose a tag to compare

Notification

  • Added isCategoryFilterEnabled in FeedChannel.
  • Added isTemplateLabelEnabled in FeedChannel.
  • Added notificationCategories in FeedChannel.
  • Added tags in NotificationData

Improvements

  • Added enableAutoResend in LocalCacheConfig to control auto-resending feature when local cache is enabled
  • Fixed a bug that cache is cleared unintentionally
  • Improvement stability

v4.9.9

16 Aug 07:55
Compare
Choose a tag to compare

Notification

  • Added authenticateFeed() in SendbirdChat to log in without connection
  • Added refreshNotificationCollections() in SendbirdChat to manually catch up the recent updates
  • Added notificationData in BaseMessage

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

10 Aug 09:37
c5d9b83
Compare
Choose a tag to compare

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, and MultipleFilesMessageRequestHandler to 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 createdAfter and createdBefore filters in GroupChannelListQuery

v4.9.7

03 Aug 02:31
6a274ac
Compare
Choose a tag to compare

v4.9.7 (Aug 3, 2023)

Improvements

  • Fixed a bug where HugeGabCheck in MessageCollection has missed some filters

v4.9.6

01 Aug 07:22
Compare
Choose a tag to compare

Notifications

  • Added FeedChannelModule
    • FeedChannelModule could be imported from @sendbird/chat/feedChannel
    • Added createMyFeedChannelListQuery() to create FeedChannelListQuery
    • Added getChannel(), getMyFeedChannelChangeLogsByTimestamp(), getMyFeedChannelChangeLogsByToken() to fetch FeedChannel data
    • Added getGlobalNotificationChannelSetting() to get notification settings
    • Added getNotificationTemplateListByToken(), getNotificationTemplate() to fetch NotificationTemplate
  • Added FeedChannelHandler
  • Added FeedChannel
    • Added FEED channel type
    • Added createNotificationCollection() to create NotificationCollection
    • Added refresh() to refresh the feed channel
    • Added markAsRead()
  • Added FeedChannelListQuery
  • Added NotificationCollection
    • NotificationCollection acts as same as MessageCollection
  • Added isChatNotification in GroupChannel
  • Added includeChatNotification in GroupChannelListQuery, GroupChannelListParams, GroupChannelChangeLogsParams
  • Added notificationInfo in AppInfo
  • Added onTotalUnreadMessageCountChanged in UserEventHandler
    • Deprecated onTotalUnreadMessageCountUpdated in UserEventHandler

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

27 Jul 06:11
6e5cec4
Compare
Choose a tag to compare

v4.9.5 (July 27, 2023)

Improvements

  • Fixed bug when received CHANNEL_INVITE event inviter is null
  • Updated MessageCollectionEventHandler members to be optional

v4.9.4

21 Jul 09:49
66397bb
Compare
Choose a tag to compare

v4.9.4 (July 21, 2023)

Improvements

  • Added EVENT_CHANNEL_BANNED to GroupchannelEventSource
  • Changed err the argument of FailedMessageHandler to 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 loadPrevious in MessageCollection
  • Fixed a bug where HugeGap check in MessageCollection
  • Fixed a bug where Poll.applyPollVoteEvent() not updating Poll.voterCount
  • Fixed a bug where the group channel changelogs did not update the group channel metadata
  • Improved stability

v4.9.4-rc.1

19 Jul 23:37
Compare
Choose a tag to compare
v4.9.4-rc.1 Pre-release
Pre-release

v4.9.4-rc.0

19 Jul 16:58
Compare
Choose a tag to compare
v4.9.4-rc.0 Pre-release
Pre-release

v4.9.3

23 Jun 01:53
Compare
Choose a tag to compare

v4.9.3 (Jun 22, 2023)

Improvements

  • Fixed a bug where sb.connect() fails when localCacheEnabled set to false in browsers with disabled Cookies
  • Fixed a bug where GroupChannelCollection displays channels in wrong order for GroupChannelListOrder.LATEST_LAST_MESSAGE