Releases: sendbird/sendbird-chat-sdk-javascript
v4.2.0
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
v4.1.4
Changelog
v4.1.4 (Nov 16, 2022)
- Replaced
SendableMessage
toBaseMessage
in some message updating methods inBaseChannel
andGroupChannel
- Fixed a bug where poll changelog is being called when there is no poll message in a group channel
- Fixed a bug where
SessionHandler
triggersonSessionTokenRequired
event even whenauthToken
is still valid
v4.1.3
v4.1.2
- 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
v4.1.0
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
v4.0.13 (Sep 28, 2022)
- Added
nicknameStartsWithFilter
andnicknameExactMatchFilter
inGroupChannelListQueryParams
- Implemented channel membership history where clients can retrieve whether users have joined or left the channel
- Added constructor support for
SessionHandler
,ConnectionHandler
, andUserEventHandler
BaseChannel.resendFileMessge()
now takes FileCompat instead of Blob in order to support React Native- Improved stability
v4.0.12
v4.0.12 (Sep 23, 2022)
- Fixed a bug in
GroupChannel.setMyPushTriggerOption()
to include channel url in request body - Fixed a bug where
resendUserMessage()
andresendFileMessage()
inBaseChannel
not using the givenfailedMessage.reqId
- Added missed export for enums:
ScheduledMessageListOrder
,ScheduledStatus
,UnreadItemKey
, andMutedMemberFilter
- Deprecated
BaseChannel.isPushEnabled
v4.0.11
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