Releases: sendbird/SendBird-SDK-JavaScript
Releases · sendbird/SendBird-SDK-JavaScript
v3.0.58
- Deprecated
operatorFilterinGroupChannelMemberListQuery. - Added
createOperatorListQueryinBaseChannelto search users that are operators in channel. - Minor bugfix.
v3.0.57
- Added
pushNotificationDeliveryOptioninUserMessageParamsandFileMessageParamsto determine whether it’d deliver the push notification for a user/file message. - Added
channelCustomTypesingetTotalUnreadMessageCount()to get an unread message count ofGroupChannelwith specific custom types.
v3.0.56
- Changed an ephemeral
GroupChannelto maintain fields oflastMessageandunreadMessageCountafter connected. - Update
SendBird.d.tsfile.
v3.0.55
- Added
UserMessageParamsfeature.- This is used in
sendUserMessage()of channel. - message: set text message to send. This value is required.
- data: set message data to send.
- customType: set message customType to send.
- targetLanguages: set message translation target language list.
- mentionedUserIds: set mentioned userId.
- mentionedUsers: set mentioned User.
- This is used in
- Added
FileMessageParamsfeature.- This is used in
sendFileMessage()of channel. fileorfileUrlis required.- file: set file to send.
- fileUrl: set file's url to send.
- fileName: set file's name to send. When you set a file and do not specify this value, it is specified by name of the file. When you set a fileUrl and do not specify this value, it is set as empty string.
- fileSize: set file's size to send. When you set a file and do not specify this value, it is specified by size of the file. When you set a fileUrl and do not specify this value, it is set as 0.
- mimeType: set file's type to send. When you set a file and do not specify this value, it is specified by type of the file. When you set a fileUrl and do not specify this value, it is specified by inferring from fileUrl.
- data: set message data to send.
- customType: set message customType to send.
- thumbnailSizes: set size of the thumbnail to be created. This value only works when you use file not fileUrl.
- mentionedUserIds: set mentioned userId.
- mentionedUsers: set mentioned User.
- This is used in
- Added
sendUserMessage(UserMessageParams, CallBackFunction)in channel. - Added
sendFileMessage(FileMessageParams, CallBackFunction)in channel. - Added
mentionedUsersin UserMessage and FileMessage to check mentioned user. - Added
isEphemeralin GroupChannel to indicate whether the channel supports message retention. - Added
myMemberStatein GroupChannel to check my joined state on GroupChannel. - Added
operatorfeature in GroupChannel.- Added
operatorsinGroupChannelParamsto set operator. - Added
operatorUserIdsinGroupChannelParamsto set operator.
- Added
- Added
banUserinGroupChannelto ban User. - Added
banUserWithUserIdinGroupChannelto ban User using userId. - Added
unbanUserinGroupChannelto remove banned User using User object. - Added
unbanUserWithUserIdinGroupChannelto remove banned User using userId. - Added
muteUserinGroupChannelto mute User using User object. - Added
muteUserWithUserIdinGroupChannelto mute User using userId. - Added
unmuteUserinGroupChannelto unmute User using User object. - Added
unmuteUserWithUserIdinGroupChannelto unmute User using userId. - Added
freezeinGroupChannelnot to allow messages from members from the channel. - Added
unfreezeinGroupChannelto allow messages from members from the channel. - Added
isFrozeninGroupChannelto check if the channel is frozen or not. - From now, channel param in callbacks of the ChannelHandler below can come in either GroupChannel or OpenChannel.
- onUserMuted(channel, user)
- onUserUnmuted(channel, user)
- onUserBanned(channel, user)
- onUserUnbanned(channel, user)
- onChannelFrozen(channel)
- onChannelUnfrozen(channel)
- Added
createMemberListQuery()inGroupChannelto search members.
v3.0.54
- Minor bugfix for
UserMessageandFileMessage.
v3.0.53
- Deprecated
userIdsFilterinGroupChannelListQuery. - Deprecated
userIdsFilterExactMatchinGroupChannelListQuery. - Deprecated
queryTypeinGroupChannelListQuery. - Added
userIdsExactFilterinGroupChannelListQueryto replaceuserIdsFilteranduserIdsFilterExactMatch. - Added
userIdsIncludeFilterinGroupChannelListQueryto replaceuserIdsFilteranduserIdsFilterExactMatch. - Added
userIdsIncludeFilterQueryTypeinGroupChannelListQueryto replacequeryType. - Added
customTypeStartsWithFilterinGroupChannelListQueryto search channels based oncustomType. - Added
superChannelFilterinGroupChannelListQueryto search channels thatisSuperis true. - Added
publicChannelFilterinGroupChannelListQueryto search channels thatisPublicis true. - Added
GroupChannelParamsfeature.- This is used in
createChannel()andupdateChannel()of GroupChannel. - isDistinct: set isDistinct on creation or update.
- isSuper: set isSuper on creation.
- isPublic: set isPublic on creation or update.
- channelUrl: set url of channel on creation.
- name: set name on creation or update.
- data: set data on creation or update.
- customType: set customType on creation or update.
- coverUrl: set coverUrl on creation or update.
- coverImage: set coverUrl using file on creation or update.
- addUser(): add user to be invited using user instance.
- addUsers(): add user to be invited using user instance array.
- addUserId(): add user to be invited using userId.
- addUserIds(): add user to be invited using userId array.
- This is used in
- Added
PublicGroupChannelListQueryinSendBirdto search channels thatisPublicis true.- limit: set list count for result.
- includeEmpty: set whether to get channel that conversation is empty.
- order: set order of result.
- channelNameContainsFilter: set channelName to get channels based on.
- channelUrlsFilter: set channelUrls to get channels based on.
- customTypesFilter: set customTypes to get channels based on.
- customTypeStartsWithFilter: set to get channels starting with the passed customType.
- superChannelFilter: set whether to fetch all channels, super channels only, or non-super channels only.
- membershipFilter: set whether to fetch according to the current user state of join.
- next(): get channel list.
v3.0.52
- Added
channelUrlsFilterinGroupChannelListQuery.
v3.0.51
- Added
markAsReadWithChannelUrls()inSendBirdto simultaneously mark as read multiple channels the logged in user has joined. - Added
markAsReadAll()inSendBirdto mark as read all channels the logged in user has joined. - Deprecated
markAsReadAll()inGroupChannel. - From now, if you pass param as
truewhen you callhide(), the channel's unreadMessageCount set to 0.
v3.0.49
- Added
customTypesFilterinGroupChannelListQueryto search groupChannel. - Added
getOriginalProfileUrl()inUserfor getting original profile image. - Added
Friendfeature.- uploadFriendDiscoveries(): add friend using discovery key.
- deleteFriendDiscovery() / deleteFriendDiscoveries(): delete friend's discovery key.
- addFriends(): add friend using friend's userID.
- deleteFriend() / deleteFriends(): delete friend using friend's userID.
- createFriendListQuery(): create object for getting friend list.
- getFriendChangeLogsByToken(): get friend relation changed log.
- addUserEventHandler(): add handler for receiving user event.
- removeUserEventHandler() / removeAllUserEventHandler(): remove user event handler.
- UserEventHandler: user event handler object.
- From now, even when you call
connect()before the previousconnect()finishes, all of them get called back for the connection establishment result at the same time.
v3.0.48
- Added
isActiveinUser.