Releases: sendbird/sendbird-chat-sdk-javascript
Releases · sendbird/sendbird-chat-sdk-javascript
v4.2.7
v4.2.6
v4.2.5
v4.2.5 (Jan 17, 2023)
Improvements
- Fixed a bug in
MessageCollectiononMessagesUpdated event triggered for old messages - Fixed a bug where calling
connectwhile offline did notreconnecteven when the app came online - Improved stability
v4.2.4
v4.2.4 (Jan 11, 2023)
Improvements
- Fixed a bug in
MessageCollectionwhere old messages are being added to the view when app reconnects - Added argument validation in
GroupChannel.pinMessage()andGroupChannel.unpinMessage() - Fixed a bug where
GroupChannelHandler.onChannelChanged()andGroupChannelHandler.onPinnedMessageUpdated()events are not called whenchannel.lastPinnedMessageis updated - Improved stability
v4.2.3
v4.2.2
v4.2.1
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 = falseFileMessageCreateParams.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 = nullGroupChannel.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
SendableMessagetoBaseMessagein some message updating methods inBaseChannelandGroupChannel - Fixed a bug where poll changelog is being called when there is no poll message in a group channel
- Fixed a bug where
SessionHandlertriggersonSessionTokenRequiredevent even whenauthTokenis still valid