Release notes
This page provides release notes for Chat SDK for Web.
Client API
v1.2.0
v1.2.0 was released on December 6, 2023.
New features
- Added the function of forwarding multiple messages:
downloadAndParseCombineMessage
: Downloads and parses a combined message.CreateCombineMsgParameters
: The properties of creating a combined message.CombineMsgBody
: The combined message body type.
- Added the function of modifying sent messages:
modifyMessage
: Modifies a sent text message.onModifiedMessage
: Occurs when a sent message is modified. The message recipient receives this event.
- Added the function of pinning a conversation:
pinConversation
: Pins a conversation.getServerPinnedConversations
: Retrieves the pinned conversations from the server.
- Added the
getServerConversations
method to retrieve the conversation list from the server. MarkedgetConversationlist
deprecated. - Added the
searchOptions
parameter object to thegetHistoryMessages
method for pulling historical messages from the server. - Added the function of managing custom attributes of group members:
setGroupMemberAttributes
: Sets custom attributes of a group member.getGroupMemberAttributes
: Retrieves custom attributes of group members.GroupEvent#memberAttributesUpdate
: Occurs when a custom attribute is changed for a group member.
- Added the
MultiDeviceEvent#RoamingDeleteMultiDeviceInfo
event that occurs when historical messages in a conversation are deleted from the server on one device. This event is received by other devices. - Added the
thumbnailHeight
andthumbnailWidth
parameters to theCreateImgMsgParameters
interface to allow you to send the image thumbnail size when sending an image message. - Added the
isLast
field to the returned content of thegetHistoryMessages
method to indicates whether the returned data is on the last page.
Improvements
- The
addContact
,acceptInvitation
,declineInvitation
,addToBlackList
, andremoveFromBlackList
methods support the Promise syntax.
Issues fixed
- A user, when pulling historical messages, sends a reception receipt to the server.
v1.1.0
v1.1.0 was released on April 28, 2023.
New features
- Adds the function of managing custom chat room attributes to implement functions like seat control and synchronization in voice chat rooms. See Manage chat room attributes.
- Adds the
priority
attribute to the message creation methodcreate
to implement the chat room message priority function. This ensures that high-priority messages are dealt with first. See Set message priority. - Adds the pagination parameters
pageNum
andpageSize
in thegetConversationlist
method to allow users to get the conversation list from the server with pagination. See Retrieve a list of conversations from the server. - Adds the group creation event
create
, which occurs on other devices of the group owner after group creation. - Adds an additional option to delete messages on the server side. See Delete conversations and historical messages.
Improvements
Reduces the size of MiniCore.
Issues fixed
Type-related issues in TypeScript code.
v1.0.8
v1.0.8 was released on December 19, 2022.
Improvements
Optimized the callback for a message sending failure, to make sure that it is triggered immediately when the network is disconnected.
Issues fixed
The file_length
parameter in the create
method did not work when this method was called
to create an attachment message.
v1.0.7
v1.0.7 was released on November 22, 2022.
Improvements
- Split the SDK into several modules.
- Added in-line comments.
- Optimized the reconnection logic.
Issues fixed
- A compatibility issue with Internet Explorer.
- A lack of the longest validity period of a token.
v1.0.6
v1.0.6 was released on August 26, 2022.
New Features
- Adds disaster recovery policies.
- Adds
resourceId
to the group and chat room APIs to deliver event notifications to multiple devices of one user. - Adds the
needAffiliations
andneedRole
parameters to thegetJoinedGroups
method to return the number of group members and their roles.
Improvements
- Optimized communication protocols to reduce the data volume.
- Added inline documents.
Issues fixed
Some type definition errors.
v1.0.5
v1.0.5 was released on Jul 22, 2022.
New features
- Adds the
onGroupEvent
andonChatroomEvent
callback events. - Adds the error code
MESSAGE_CURRENT_LIMITING
, which means that the chat group message has exceeded the concurrent limit.
Improvements
- Supported retrieving the information of multiple chat groups using
getGroupInfo
.
v1.0.3
v1.0.3 was released on May 16, 2022.
New Features
- Supports reaction, which enables users to add reaction emojis to the specified message.
- Supports content moderation with the reportMessage method.
- Supports message push configuration, which enables users to configure various push settings.
- Supports data report.
Improvements
- Supports retrieving chat groups by pagination.
- Supports setting the number of chat group members when creating a chat group.
- Adds thumbnail URL to the received image messages.
Issues fixed
When the user switched the user ID, cache remains in the group message.
v1.0.2
v1.0.2 was released on April 19, 2022.
New features
- Supports the presence feature, which indicates the online status of the user.
- Supports translation. You can implement translation on the recipient's client, or auto-translation on the sender's client.
Improvements
- The Uni_SDK cannot run on the browser.
- The user cannot modify the group description when creating a chat group.
- The compatibility of SSR.
v1.0.1.1
v1.0.1.1 was released on January 19, 2022.
New features
This release adds the following features:
- Supports downloading group shared files using the
downloadGroupSharedFile
method. - Supports retrieving group shared files by pagination using the
fecthGroupSharedFileList
method.
v1.0.1
v1.0.1 was released on January 14, 2022.
New features
This release supports deleting the conversation thread using the deleteSession
method.
Improvements
The release made the following improvements:
- Added a
buildingNumber
parameter in the location message. - Added
error: type 221
for sending a message to a user that is not a contact. - Added
error: type 219
for failing to send a message because all the users are muted.
Issues fixed
This release fixe the issue that the onChanelMessage
callback was not triggered and other known issues.
v1.0.0
v1.0.0 was released on December 10, 2021.
Improvements
This release made the following improvmenets:
- Added some error codes.
- Renamed some functions and updated the API annotations.
Fixed issues
This release fixed the following issues:
- The delivery acknowledgement was not received.
- The group announcement could not be set as null.
- An error was reported when muting a specified user during chat.
RESTful API
v1.2.0
-
Added new REST APIs for management of custom attributes of group members:
- Setting custom attributes of a group member
- Retrieving all custom attributes of a group member
- Retrieving custom attributes of multiple group members by attribute key
-
Removed the
nickname
parameter from the RESTful APIs for adding one user or multiple users