v4.0.0
v4.0.0 (Jun 14, 2022)
To see detailed changes for below items, please refer to the migration guide
-
All apis are now made
async
and callbacks are removed -
The way to instantiate
SendBird
instance has changed fromnew SendBird
toSendbirdChat.init()
-
sendUserMessage()
,sendFileMessage()
no longer takes callback as argument but addedonPending()
,onFailed()
,onSucceeded
event handler instead -
All
XxxParams
classes (exceptXxxHandlerParams
classes) are now interfaces// old const params = new XxxParams(); // new const params = { ... };
-
All
XxxListQuery
classes are now immutable.// old const query = sb.GroupChannel.createMyGroupChannelListQuery(); query.customTypesFilter = ['a', 'b'] // new const query = sb.groupChannel.createMyGroupChannelListQuery({ customTypesFilter: [‘a’, ‘b’] });
-
Added
SendbirdChatParams.localCacheEncryption
-
Added
onConnected
, andonDisconnected
toConnectionHandler
-
Added
addOpenChannelHandler
,removeOpenChannelHandler
,removeAllOpenChannelHandlers
inOpenChannelModule
-
Added
addGroupChannelHandler
,removeGroupChannelHandler
,removeAllGroupChannelHandlers
inGroupChannelModule
-
Added
UserUpdateParams
-
Added
UnreadItemCountParams
-
Removed
sb.addChannelHandler()
,sb.removeChannelHandler()
, andsb.removeAllChannelHandlers()
-
Removed builder pattern for
GroupChannelCollection
andMessageCollection
-
Removed
sb.updateCurrentUserInfoWithProfileImage()
. Usesb.updateCurrentUserInfo()
instead -
Removed
MessageCollectionInitPolicy.CACHE_ONLY
-
Replaced
SendBirdParams
withSendbirdChatParams
-
Replaced
sb.GroupChannel
withGroupChannelModule
-
Replaced
sb.OpenChannel
withOpenChannelModule
-
Replaced
sb.BaseMessage
withMessageModule
-
Replaced
SendBird.setLogLevel()
withsb.logLevel
andSendbirdChatParams.logLevel
-
Replaced
sb.useAsyncStorageAsDatabase()
toSendbirdChatParams.useAsyncStorageStore
-
Replaced
channelHandler.onReadReceiptUpdated
togroupChannelHandler.onUnreadMemberStatusUpdated
-
Replaced
channelHandler.onDeliveryReceiptUpdated
togroupChannelHandler.onUndeliveredMemberStatusUpdated
-
Replaced
GroupChannelParams
withGroupChannelCreateParams
andGroupChannelUpdateParams
-
Replaced
OpenChannelParams
withOpenChannelCreateParams
andOpenChannelUpdateParams
-
Replaced
UserMessageParams
withUserMessageCreateParams
andUserMessageUpdateParams
-
Replaced
FileMessageParams
withFileMessageCreateParams
andFileMessageUpdateParams
-
Replaced
SendBird.getInstance()
withSendbirdChat.instance
-
Replaced
sb.getApplicationId()
withsb.appId
-
Replaced
sb.getConnectionState()
withsb.connectionState
-
Replaced
sb.getLastConnectedAt()
withsb.lastConnectedAt
-
Replaced
sb.Options.useMemberAsMessageSender
withsb.options.useMemberInfoInMessage
-
Replaced
channel.getCachedMetaData()
withchannel.cachedMetaData
-
Replaced
message.isResendable()
withmessage.isResendable
-
Replaced
sb.UserMessage.buildFromSerializedData()
,sb.FileMessage.buildFromSerializedData()
, andsb.AdminMessage.buildFromSerializedData()
withsb.message.buildMessageFromSerializedData()
-
Replaced
requestedMentionUserIds
withmentionedUserIds
inBaseMessage
-
Replaced
isUserMessage
,isFileMessage
,isAdminMessage
withisUserMessage()
,isFileMessage()
andisAdminMessage()
inBaseMessage
-
Replaced
isGroupChannel
,isOpenChannel
withisGroupChannel()
andisOpenChannel()
-
Moved
sb.appVersion
toSendbirdChatParams.appVersion
-
Moved
sb.getMyGroupChannelChangeLogsByToken()
tosb.groupChannel.getMyGroupChannelChangeLogsByToken()
-
Moved
sb.getMyGroupChannelChangeLogsByTimestamp()
tosb.groupChannel.getMyGroupChannelChangeLogsByTimestamp()
-
Moved
sb.getUnreadItemCount()
tosb.groupChannel.getUnreadItemCount()
-
Moved
sb.getTotalUnreadChannelCount()
tosb.groupChannel.getTotalUnreadChannelCount()
-
Moved
sb.getTotalUnreadMessageCount()
tosb.groupChannel.getTotalUnreadMessageCount()
-
Moved
sb.getTotalScheduledMessageCount()
tosb.groupChannel.getTotalScheduledMessageCount()
-
Moved
sb.getSubscribedTotalUnreadMessageCount()
tosb.groupChannel.getSubscribedTotalUnreadMessageCount()
-
Moved
sb.getSubscribedCustomTypeTotalUnreadMessageCount()
tosb.groupChannel.getSubscribedCustomTypeTotalUnreadMessageCount()
-
Moved
sb.getSubscribedCustomTypeUnreadMessageCount()
tosb.groupChannel.getSubscribedCustomTypeUnreadMessageCount()
-
Moved
sb.Sender.buildFromSerializedData()
tosb.message.buildSenderFromSerializedData()
-
Moved
sb.GroupChannel.buildFromSerializedData()
tosb.groupChannel.buildGroupChannelFromSerializedData()
-
Moved
sb.GroupChannelListQuery.buildFromSerializedData()
tosb.groupChannel.buildGroupChannelListQueryFromSerializedData()
-
Moved
sb.Member.buildFromSerializedData()
tosb.groupChannel.buildMemberFromSerializedData()
-
Moved
sb.OpenChannel.buildFromSerializedData()
tosb.openChannel.buildOpenChannelFromSerializedData()
-
Moved
sb.User.buildFromSerializedData()
tosb.buildUserFromSerializedData()
-
Divided
ChannelHandler
intoGroupChannelHandler
andOpenChannelHandler
-
Renamed
SendbirdException
toSendbirdError
-
Renamed
sb.initializeDatabase()
tosb.initializeCache()
-
Renamed
sb.clearDatabase()
tosb.clearCachedData()
-
Renamed
Options
toSendbirdChatOptions
-
Renamed
groupChannel.cachedReadReceiptStatus
togroupChannel.cachedUnreadMemberState
-
Renamed
groupChannel.cachedDeliveryReceiptStatus
togroupChannel.cachedUndeliveredMemberState
-
Renamed
GCMPushToken
toFCMPushToken
v4.0.0-beta.*
For the changelog between the beta release, please refer to this page
v3 Changelog
Please refer to this page