- Ordered member list by nickname alphabetically.
- Fixed a bug that a file upload.
- Bugfix about RequireJS.
- Bugfix about myMemberState when user decline invitation.
- Deprecated
operatorFilterinGroupChannelMemberListQuery. - Added
createOperatorListQueryinBaseChannelto search users that are operators in channel. - Minor bugfix.
- 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.
- Changed an ephemeral
GroupChannelto maintain fields oflastMessageandunreadMessageCountafter connected. - Update
SendBird.d.tsfile.
- 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.
- Minor bugfix for
UserMessageandFileMessage.
- 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.
- Added
channelUrlsFilterinGroupChannelListQuery.
- Minor bugfix for
markAsReadWithChannelUrls().
- 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.
- 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.
- Added
isActiveinUser.
- Update TypeScript Definition file(SendBird.d.ts).
- Minor bug fixes.
- Minor bug fixes.
- Added
customTypeFilterincreateMyGroupChannelListQuery. - Added
onChannelHiddeninChannelHandler.
- Added
isHiddeninGroupChannel.
- Added
getMessageChangeLogsByToken()inChannel.
- Updated TypeScript Definition file(SendBird.d.ts).
NOTE
Install via NPM and import like below in your TypeScript file:
import * as SendBird from 'SendBird';
var sb = new SendBird({'appId': 'USER_APP_ID'});
// do something...If you have trouble importing SendBird, please check your tsconfig.json file and change the value of "allowSyntheticDefaultImports" to true in compilerOptions.
- Added
serialize()andbuildFromSerializedData()inUser,MessageandChannel. - Added
getChannelCount()andresetMyHistory()inGroupChannel.
- Added
isBlockedByMeandisBlockingMeinMember.
- Added
createMetaData,updateMetaData,deleteMetaDataanddeleteAllMetaDatainUser. - Added
metaDataKeyandmetaDataValuesfilter inUserListQuery. - Added
isFrozeninOpenChannel. - Added
hidePreviousMessagesoption inhidefunction.
- Added
channelNameContainsFilterin myGroupChannelListQuery object. - Added
onMetaDataCreated,onMetaDataUpdated,onMetaDataDeleted,onMetaCountersCreated,onMetaCountersUpdatedandonMetaCountersDeletedhandlers inChannelHandler.
- Updated login status check.
- minor bugfix for NodeJS.
- Updated dependent libs for NodeJS.
- Updated the TypeScript file.
- Fixed the WebSocket disconnect.
- Fixed version check.
- Added
delete()in OpenChannel. - Added
updateChannel()in GroupChannel and OpenChannel.
- Fixed a compatibility issue with React Native.
- Added
getPushTemplate()andsetPushTemplate(). - Added checking SDK's version using
SendBird.version. - Now support connecting to custom host.
- Added return value when call
cancelUploadingFileMessage().
- Fix the bug that drops message events when sb.setErrorFirstCallback was set to True.
SendBirdExceptionnow inherits from the JavaScript Error object.- You can now decide the error parameter order in callback functions using
sb.setErrorFirstCallback(True|False).
- Added
updateUserMessage()andupdateFileMessage(). - Added
onMessageUpdated()in ChannelHandler. - You now can confirm file upload progress by passing a progressHandler as a parameter when calling
sendFileMessage(). - Added
cancelUploadingFileMessage().
- Added getTotalUnreadChannelCount
- Now markAsRead doesn't have any delays
- Now GroupChannelList returns correct readstatus as well.
- Member nickname/profile get updated when new messages arrived.
- Return more consistent errors when connection() is not made before calling methods.
- Now we don't count senders in readreceipt.
- Now it supports IE8/9 with some Flash libraries
- Fixed a bug regarding disableStateChange/enableStateChange
- Fixed a file uploading bug in React Native.
- Fixed minor bugs related to null check.
- Fixed a bug in calling markAsRead().
- Added supports for video/image thumbnail generations and file encryption/access control.
- connect()/disconnect() doesn't clear out connection/channel handlers anymore. Instead you should use removeAllConnectionHandlers() and removeAllChannelHandlers().
- Fixed a bug in removing ios push tokens.
- Now reconnect() method has been added which you can use when you want to manually trigger reconnect logic when network condition gets better.
- Added "getMessages" series of methods with timestamp and messageId filter.
- Fixed a callback handling bug.
- Finally push notifications feature is officially supported in V3 JS SDK.
- Added "setBackgroundState()" and "setForegroundState()".
- Added "messageType" filter to PreviousMessageQueryList.
- InItial connection speed has been improved a lot!.
- Auto-Reconnection is now more robust.
- Auto-Translation support has been added.
- Fixed a bug that created non-integer file size field.
- Fixed a reconnection bug happening after calling disconnect() and connect() in serial.
- Added "custom_type" field to message/file object.
- Added "user_id"/"nickanme" filters to GroupChannelList.
- Fixed wrong message_id, data field of FileMessage object.
- Fixed a Keep-Alive bug now and it should be much faster in React Native/NodeJS.
- Now calling "connect()" multiple times in a row triggers "disconnect()" internally to avoid having multiple websocket connections
- New License File
- Fixed a bug that increases unread message count when a user gets its own messages
- Cleared out old ws object's event handlers after disconnect to prevent a user from getting messages from another user who logged in on the same device.
- minor bugfix for IE, Safari, Opera.
sendFileMessagebugfix.
- Added features like filtered user list, open channel keyword search, push preference setting, etc.
messageListQuerybugfix.
- add dependencies
- NodeJS Keepalive bugfix.
- React Native android bugfix.
createPreviousMessageListQuerybugfix.- npm bundle bugfix.
- npm publish.
- Reconnect bugfix.
getMetaCounters,getMetaDatabugfix.
blockUserWithUserIdbugfix.
- v3.0.0 release.