大约 2 分钟
releasenotes
v1.4.0
v1.4.0 was released on XXXX, 2026.
New Features
- Supported sending and receiving GIF image messages. The GIF image message is a subtype of the image message and will not be compressed.
- Supported setting, updating, and retrieving group avatars.
- Enabled users to receive the following information upon joining a chat room: Added the
infofield to thejoinChatRoomresponse:- Chat room creation time:
createtimestamp. - Whether all-member mute is enabled:
isallmembersmuted. - Whether the user is in the allowlist:
isinallowlist. - Current chat room member count:
membercount. - User mute expiration time:
muteexpiretimestamp.
- Chat room creation time:
- Included the mute expiration time in the chat room mute event: Added the
muteTimestampparameter to themuteMemberevent. - Supported retrieving roaming messages sent by a specific group member.
- Supported batch notifications via group member join/leave events. Previously, the SDK triggered a separate event for each individual member: Added new events
memberspresenceandmembersabsence(the originalmemberpresenceandmemberabsenceremain valid). - Allowed members in the chat room to receive the new announcement after it is modified: Added the
announcementfield to the chat room announcement update eventupdateannouncement. - Included the user ID of the muted member in the group/chat room mute event: Added the
userIdparameter to themuteMemberevent. - Allowed setting extension information when creating a group: Deprecated
createGroupand usecreateGroupVNextinstead.
Improvements
- Supported modifying various message types via the message modification API
modifyMessage:- Text and custom messages: Modifying both the message body and extensions (
ext). - File, video, voice, image, location, and combined messages: Modifying extensions (
ext) only. - Command messages: Not supported.
- Text and custom messages: Modifying both the message body and extensions (
- Allowed group owners, chat room owners, and administrators to recall messages sent by other users.
- Adjusted the trigger threshold for the
onTokenWillExpireevent; the notification is now triggered when 80% of the token's validity period has elapsed (previously 50%). - Supported retrieving a group/chat room member list that includes each member's user ID, role, and join time.
- Deprecated
listGroupMembers; usegetGroupMembersinstead. - Deprecated
listChatRoomMembers; usegetChatRoomMembersinstead.
- Deprecated
- Optimized the reconnection logic to automatically switch reconnection addresses by default.
- Adjusted the execution order of the login method's callback
open().thenand the connection success eventonConnected: Callingopen()will now trigger theonConnectedoronDisconnectedevent before resolvingopen().thenor rejectingopen().catch. This ensures that subsequent actions only occur after the connection is fully established, resolving the previous issue where messages could only be sent afteronConnectedwas triggered following the login callback. Additionally, login errors such as authentication failures will now be thrown directly inopen().catch. - Added
parseDownloadResponseanddownloadmethods to the SDK'smessageobject: These methods are now available in both theutilsobject and themessageobject.
Issues Fixed
- The
conversationIdparameter value was incorrect in the message pinning eventonMessagePinEvent. - The message retrieval occasionally failed.
