Skip to content

Releases: sendbird/sendbird-chat-sdk-javascript

v4.2.5

17 Jan 06:26
Compare
Choose a tag to compare

v4.2.5 (Jan 17, 2023)

Improvements

  • Fixed a bug in MessageCollection onMessagesUpdated event triggered for old messages
  • Fixed a bug where calling connect while offline did not reconnect even when the app came online
  • Improved stability

v4.2.4

11 Jan 05:16
Compare
Choose a tag to compare

v4.2.4 (Jan 11, 2023)

Improvements

  • Fixed a bug in MessageCollection where old messages are being added to the view when app reconnects
  • Added argument validation in GroupChannel.pinMessage() and GroupChannel.unpinMessage()
  • Fixed a bug where GroupChannelHandler.onChannelChanged() and GroupChannelHandler.onPinnedMessageUpdated() events are not called when channel.lastPinnedMessage is updated
  • Improved stability

v4.2.3

29 Dec 06:00
Compare
Choose a tag to compare

Changelog

v4.2.3 (Dec 29, 2022)

Improvements

  • Fixed a bug in GroupChannelCollection.dispose() not to clear the event handler
  • Fixed a bug in MessageCollection.dispose() not to clear the event handler
  • Fixed a bug in flooding semaphore keys in localStorage

v4.2.2

23 Dec 08:46
Compare
Choose a tag to compare

Changelog

v4.2.2 (Dec 23, 2022)

Improvements

  • Unlimited store size support
  • Fixed a bug in MessageCollection.dispose() not to clear the event handler

v4.2.1

16 Dec 08:09
Compare
Choose a tag to compare

Changelog

v4.2.1 (Dec 16, 2022)

Improvements

  • Fixed a bug where calling sb.connect() right after sb.disconnect() throws an error given the user had entered an open channel
  • Improved stability on WebSocket connection handling

v4.2.0

09 Dec 08:42
Compare
Choose a tag to compare

Changelog

v4.2.0 (Dec 9, 2022)

Features

Pinned Message 📌

Pinned Message is released. You can now maintain a special set of messages (up to 10 per channel) that you want everyone in the channel to share. It can be anything from announcements, surveys, upcoming events, and any many more. Pin your messages and never miss them!
Stay tuned for updates as we are rolling out more exciting features and see below for exact specifications:point_down:

Specification

  • Pin when sending a message
    • UserMessageCreateParams.isPinnedMessage: boolean = false
    • FileMessageCreateParams.isPinnedMessage: boolean = false
  • Pin existing message
    • GroupChannel.pinMessage(messageId: number): Promise<void>
  • Unpin a message
    • GroupChannel.unpinMessage(messageId: number): Promise<void>
  • Pinned messages
    • GroupChannel.lastPinnedMessage: BaseMessage = null
    • GroupChannel.pinnedMessageIds: number[] = []

We strongly recommend using Collections (Message, Channel) to implement Pinned Messages as it would automatically take care of numerous events out of the box when messages are created, updated, and deleted.


Improvements

  • Improved stability

v4.1.5

24 Nov 07:15
Compare
Choose a tag to compare

Changelog

v4.1.5 (Nov 24, 2022)

  • MessageCollection now loads unsent messages from cache before onCacheResult() is called

v4.1.4

16 Nov 09:39
Compare
Choose a tag to compare

Changelog

v4.1.4 (Nov 16, 2022)

  • Replaced SendableMessage to BaseMessage in some message updating methods in BaseChannel and GroupChannel
  • Fixed a bug where poll changelog is being called when there is no poll message in a group channel
  • Fixed a bug where SessionHandler triggers onSessionTokenRequired event even when authToken is still valid

v4.1.3

16 Nov 04:53
Compare
Choose a tag to compare
  • Improved stability.

v4.1.2

15 Nov 09:11
Compare
Choose a tag to compare
  • Fixed a bug where Poll changelog being called when it's not enabled
  • Fixed the wrong MessageCollection event being triggered
  • Removed isAnonymous in Poll, PollCreateParams, and PollUpdateParams
  • Improved channel.messageOffsetTimestamp logic
  • Corrected session related error code
  • Improved stability