Releases: sendbird/SendBird-SDK-JavaScript
Releases · sendbird/SendBird-SDK-JavaScript
v3.0.58
- Deprecated
operatorFilter
inGroupChannelMemberListQuery
. - Added
createOperatorListQuery
inBaseChannel
to search users that are operators in channel. - Minor bugfix.
v3.0.57
- Added
pushNotificationDeliveryOption
inUserMessageParams
andFileMessageParams
to determine whether it’d deliver the push notification for a user/file message. - Added
channelCustomTypes
ingetTotalUnreadMessageCount()
to get an unread message count ofGroupChannel
with specific custom types.
v3.0.56
- Changed an ephemeral
GroupChannel
to maintain fields oflastMessage
andunreadMessageCount
after connected. - Update
SendBird.d.ts
file.
v3.0.55
- Added
UserMessageParams
feature.- 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
FileMessageParams
feature.- This is used in
sendFileMessage()
of channel. file
orfileUrl
is 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
mentionedUsers
in UserMessage and FileMessage to check mentioned user. - Added
isEphemeral
in GroupChannel to indicate whether the channel supports message retention. - Added
myMemberState
in GroupChannel to check my joined state on GroupChannel. - Added
operator
feature in GroupChannel.- Added
operators
inGroupChannelParams
to set operator. - Added
operatorUserIds
inGroupChannelParams
to set operator.
- Added
- Added
banUser
inGroupChannel
to ban User. - Added
banUserWithUserId
inGroupChannel
to ban User using userId. - Added
unbanUser
inGroupChannel
to remove banned User using User object. - Added
unbanUserWithUserId
inGroupChannel
to remove banned User using userId. - Added
muteUser
inGroupChannel
to mute User using User object. - Added
muteUserWithUserId
inGroupChannel
to mute User using userId. - Added
unmuteUser
inGroupChannel
to unmute User using User object. - Added
unmuteUserWithUserId
inGroupChannel
to unmute User using userId. - Added
freeze
inGroupChannel
not to allow messages from members from the channel. - Added
unfreeze
inGroupChannel
to allow messages from members from the channel. - Added
isFrozen
inGroupChannel
to 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()
inGroupChannel
to search members.
v3.0.54
- Minor bugfix for
UserMessage
andFileMessage
.
v3.0.53
- Deprecated
userIdsFilter
inGroupChannelListQuery
. - Deprecated
userIdsFilterExactMatch
inGroupChannelListQuery
. - Deprecated
queryType
inGroupChannelListQuery
. - Added
userIdsExactFilter
inGroupChannelListQuery
to replaceuserIdsFilter
anduserIdsFilterExactMatch
. - Added
userIdsIncludeFilter
inGroupChannelListQuery
to replaceuserIdsFilter
anduserIdsFilterExactMatch
. - Added
userIdsIncludeFilterQueryType
inGroupChannelListQuery
to replacequeryType
. - Added
customTypeStartsWithFilter
inGroupChannelListQuery
to search channels based oncustomType
. - Added
superChannelFilter
inGroupChannelListQuery
to search channels thatisSuper
is true. - Added
publicChannelFilter
inGroupChannelListQuery
to search channels thatisPublic
is true. - Added
GroupChannelParams
feature.- 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
PublicGroupChannelListQuery
inSendBird
to search channels thatisPublic
is 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
channelUrlsFilter
inGroupChannelListQuery
.
v3.0.51
- Added
markAsReadWithChannelUrls()
inSendBird
to simultaneously mark as read multiple channels the logged in user has joined. - Added
markAsReadAll()
inSendBird
to mark as read all channels the logged in user has joined. - Deprecated
markAsReadAll()
inGroupChannel
. - From now, if you pass param as
true
when you callhide()
, the channel's unreadMessageCount set to 0.
v3.0.49
- Added
customTypesFilter
inGroupChannelListQuery
to search groupChannel. - Added
getOriginalProfileUrl()
inUser
for getting original profile image. - Added
Friend
feature.- 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
isActive
inUser
.