Releases: sendbird/sendbird-chat-sdk-javascript
Releases · sendbird/sendbird-chat-sdk-javascript
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
v4.0.10
v4.0.10 (Aug 119, 2022)
- Added sb.setOnlineListener() and sb.setOfflineListener() interfaces for non-browser environments
- Updated to stop all running sync jobs when GroupChannelCollection.dispose(), and MessageCollection.dispose() is called
- Added missing exports to sendbird.min.js
- Improved stability
v4.0.9
v4.0.8
v4.0.8 (Jul 26, 2022)
- Fixed a bug where request url is malformed when it includes a stringified array as a parameter value
- Fixed a bug where
groupChannelCollection.onChannelsUpdated()
is not called whengroupChannel.lastMessage
is updated - Fixed a bug where file upload failed messages are not resendable
- Improved stability
v.4.0.7
v4.0.7 (Jul 20, 2022)
- Fixed a bug where
groupChannelCollection.hasNext
is always true. - Fixed a bug where
messageCollection.initialize()
returning the result in reverse order. - Fixed a bug where
channelHandler.onMentionReceived()
returning a channel withmentionedCount
value not updated when expected to be updated. - Params parameter of
getUnreadItemCount()
,getTotalUnreadMessageCount()
,getTotalScheduledMessageCount()
,createDistinctChannelIfNotExist()
inGroupChannelModule
are now made optional. - Deprecated
sessionHandler.onSessionExpired()
. - Improved stability.
v4.0.6
## v4.0.6 (Jul 8, 2022)
- Fixed a bug `messageRequestHandler.onFailed()` to always return a failed message.
- Improved stability.