You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type of SendbirdChatParams.useAsyncStorageStore has changed to AsyncStorage of @react-native-async-storage/async-storage
Added clearCachedMessages() in SendbirdChat
Rename SendbirdChat.clearCache() to SendbirdChat.clearCachedData()
Bug fixed the logic for filtering public group channel in GroupChannelCollection
Rename SendbirdChat.Options.useMemberAsMessageSender to SendbirdChat.Options.useMemberInfoInMessage
useMemberInfoInMessage now applies to both message.sender and message.mentionedUsers
Bug fixed cached channel not updated when disconnect and then connect
Bug fixed broken file data of auto-resent file message
Added BaseMessage.parentMessage
Added BaseMessage.applyParentMessage()
Parent message update event now updates parentMessage value of all its child messages
Bug fixed message.metaArrays value not being updated after calling createMessageMetaArrayKeys(), deleteMessageMetaArrayKeys(), addMessageMetaArrayValues(), and removeMessageMetaArrayValues() of BaseChannel
MessageCollectionInitPolicy.API_ONLY has been removed
All classes whose namespace ends with params (ex. UserMessageCreateParams, GroupChannelCreateParams, etc.) is now changed to interfaces
Improved stability
v4.0.0-beta.11 (May 24, 2022)
SendbirdChat.connect() now returns User instance from the cache if local cache is enabled
Improved stability
v4.0.0-beta.10 (May 17, 2022)
BaseMessage's requestedMentionUserIds has been replaced with mentionedUserIds
Getter and setter for mentionedUsers have been added to userMessageCreateParams, userMessageUpdateParams, fileMessageUpdateParams, and fileMessageUpdateParams
Getters for BaseMessage, isUserMessage, isFileMessage, and isAdminMessage have been replaced with isUserMessage(), isFileMessage(), and isAdminMessage()
Getters for BaseChannel, isGroupChannel, and isOpenChannel, have been replaced with isGroupChannel(), and isOpenChannel()
reqId in BaseMessageCreateParamsProperties has been removed
Added translationTargetLanguages in UserMessage
Added translationTargetLanguages in UserMessageUpdateParamsProperties
Scheduled message support:
Deleted ScheduledUserMessageParams
Deleted ScheduledUserMessage
Deleted registerScheduledUserMessage() in GroupChannel
Added scheduledInfo in BaseMessage
Added ScheduledStatus
Added SCHEDULED in SendingStatus
Added ScheduledMessageRetrievalParams
Added ScheduledFileMessageCreateParams
Added ScheduledFileMessageUpdateParams
Added ScheduledUserMessageCreateParams
Added ScheduledUserMessageUpdateParams
Added TotalScheduledMessageCountParams
Added ScheduledMessageListOrder
Added ScheduledMessageListQuery
Added ScheduledMessageListQueryParams
Added getScheduledMessage() in MessageModule
Added createScheduledMessageListQuery() in GroupChannelModule
Added getTotalScheduledMessageCount() in SendbirdChat
Added createScheduledUserMessage(), updateScheduledUserMessage(), createScheduledFileMessage(), updateScheduledFileMessage(), cancelScheduledMessage(), sendScheduledMessageNow() in GroupChannel
Treeshaking applied. The classes, interfaces, enums, types come to be import-able with treeshaking. See SDK reference page for detailed list of exports.
Changed sb.updateCurrentUserInfo() to take UserUpdateParams as a parameter
// v3sb.updateCurrentUserInfo(NICKNAME,PROFILE_URL);sb.updateCurrentUserInfoWithProfileImage(NICKNAME,PROFILE_IMAGE);// v4sb.updateCurrentUserInfo({nickname: NICKNAME,profileUrl: PROFILE_URL,// or you can put a file as `profileImage` to upload the profile});// no sb.updateCurrentUserInfoWithProfileImage()
Changed sb.getUnreadItemCount() to take UnreadItemCountParams as a parameter
Changed sb.getTotalUnreadMessageCount() to take TotalUnreadMessageCountParams as a parameter
// v3sb.getTotalUnreadMessageCount(CHANNEL_CUSTOM_TYPES);// no super channel filter support// v4sb.getTotalUnreadMessageCount({channelCustomTypesFilter: CHANNEL_CUSTOM_TYPES,superChannelFilter: SUPER_CHANNEL_FILTER,});
Changed sendUserMessage() and sendFileMessage() interface to chain the callbacks for pending/failed/succeeded messages
// v3constpendingMessage=channel.sendUserMessage(params,(err,message)=>{if(err){// message is a failed message}else{// message is a succeeded message}});// v4channel.sendUserMessage(params).onPending((pendingMessage: UserMessage)=>{}).onFailed((err: Error,failedMessage: UserMessage)=>{}).onSucceeded((succeededMessage: UserMessage)=>{});
Changed all classes whose namespace ends with params to interfaces
// v3constparams=newsb.UserMessageParams();params.message='message';constpendingMessage=channel.sendUserMessage(params,(err,message)=>{if(err){// message is a failed message}else{// message is a succeeded message}});// v4import{UserMessageParams}from'@sendbird/chat/message';channel.sendUserMessage({message: 'message',}).onPending((pendingMessage: UserMessage)=>{}).onFailed((err: Error,failedMessage: UserMessage)=>{}).onSucceeded((succeededMessage: UserMessage)=>{});
Separated update params from create params
// v3GroupChannelParams// both for create/updateOpenChannelParams// both for create/updateUserMessageParams// both for send/updateFileMessageParams// both for send/update// v4GroupChannelCreateParamsGroupChannelUpdateParamsOpenChannelCreateParamsOpenChannelUpdateParamsUserMessageCreateParamsUserMessageUpdateParamsFileMessageCreateParamsFileMessageUpdateParams
Changed to accept properties in ~Query constructors. The query properties are immutable later on