Skip to content

Releases: sendbird/sendbird-chat-sdk-javascript

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

v4.1.1

26 Oct 08:58
Compare
Choose a tag to compare

Changelog

v4.1.1 (Oct 26, 2022)

  • Exported existing interfaces including MessageSearchQueryParams and others (22 in total)

v4.1.0

14 Oct 08:30
Compare
Choose a tag to compare

Changelog

v4.1.0 (Oct 14, 2022)

Features

Polls

Polls is released 🎉 Here’s where we think it will be really powerful.

  • Collect feedback and customer satisfaction
  • Drive engagement by receiving participants in preferences
  • Run surveys and quiz shows
  • And many more!

Scheduled messages

Scheduled messages is released 🎊 Here’s where we think it will be really useful.

  • Let your users queue their messages for the future
  • Set helpful reminders and notifications to nudge certain actions
  • And many more!

Improvements

  • Fixed a cross domain issue in OnlineDetector
  • Fixed a bug where MessageCollectionEventHandler.onMessagesUpdated is wrongly called for a message already added on connect or reconnect

Please note that both Polls and Scheduled Messages are released as beta features. Thus specific parameters and properties may change to improve client’s overall experience.

Stay tuned for updates as we are rolling out more exciting features and see below for exact specifications 👇


Specification

Polls

  • Create
    • PollModule.create()
      • PollCreateParams
      • UserMessageCreateParams.pollId
  • Read
    • PollModule.get()
      • PollRetrievalParams
    • SendbirdChat.createPollListQuery()
      • PollListQueryParams
    • GroupChannel.createPollListQuery()
    • UserMessage.poll
  • Update
    • GroupChannel.updatePoll()
      • PollUpdateParams
    • GroupChannel.closePoll()
  • Delete
    • GroupChannel.deletePoll()
  • Others:
    • Poll
    • GroupChannel.getPollChangeLogsSinceTimestamp()
    • GroupChannel.getPollChangeLogsSinceToken()
    • PollData
    • GroupChannelHandlerParams.onPollUpdated()
    • GroupChannelHandlerParams.onPollDeleted()
Options
  • Create
    • GroupChannel.addPollOption()
  • Read
    • PollModule.getOption()
      • PollOptionRetrievalParams
    • SendbirdChat.createPollVoterListQuery()
      • PollVoterListQueryParams
    • GroupChannel.createPollVoterListQuery()
  • Update
    • GroupChannel.updatePollOption()
    • GroupChannel.votePoll()
  • Delete
    • GroupChannel.deletePollOption()
  • Others:
    • PollOption
    • GroupChannelHandlerParams.onPollVoted()
    • PollStatus
    • PollVoteEvent
    • PollUpdateEvent
    • CollectionEventSource.EVENT_POLL_UPDATED
    • CollectionEventSource.EVENT_POLL_VOTED
    • CollectionEventSource.SYNC_POLL_CHANGELOGS

Scheduled Messages

  • Create
    • GroupChannel.createScheduledUserMessage()
    • GroupChannel.createScheduledFileMessage()
  • Read
    • ScheduledMessageListQuery
    • BaseMessage.getScheduledMessage()
      • ScheduledMessageRetrievalParams
  • Update
    • GroupChannel.updateScheduledUserMessage()
    • GroupChannel.updateScheduledFileMessage()
  • Delete
    • GroupChannel.cancelScheduledMessage()
  • Others
    • ScheduledInfo
    • SendingStatus.SCHEDULED
    • BaseMessage.scheduledInfo
    • GroupChannelModule.getTotalScheduledMessageCount()
      • TotalScheduledMessageCountParams

v4.0.13

28 Sep 07:22
Compare
Choose a tag to compare

v4.0.13 (Sep 28, 2022)

  • Added nicknameStartsWithFilter and nicknameExactMatchFilter in GroupChannelListQueryParams
  • Implemented channel membership history where clients can retrieve whether users have joined or left the channel
  • Added constructor support for SessionHandler, ConnectionHandler, and UserEventHandler
  • BaseChannel.resendFileMessge() now takes FileCompat instead of Blob in order to support React Native
  • Improved stability

v4.0.12

29 Sep 06:17
Compare
Choose a tag to compare

v4.0.12 (Sep 23, 2022)

  • Fixed a bug in GroupChannel.setMyPushTriggerOption() to include channel url in request body
  • Fixed a bug where resendUserMessage() and resendFileMessage() in BaseChannel not using the given failedMessage.reqId
  • Added missed export for enums: ScheduledMessageListOrder, ScheduledStatus, UnreadItemKey, and MutedMemberFilter
  • Deprecated BaseChannel.isPushEnabled

v4.0.11

31 Aug 07:43
Compare
Choose a tag to compare

v4.0.11 (AUG 31, 2022)

  • Added getMessagesByMessageId() to BaseChannel
  • Added MessageSearchQuery's totalCount and made it public
  • Fixed reportUser() returning 404 Error
  • Fixed a bug where after the user updates their profile and sends a message or is mentioned, their profile wasn't being updated in the received message
  • Added parameter validation check in sb.connect()
  • Improved stability