Releases: sendbird/sendbird-chat-sdk-android
Releases · sendbird/sendbird-chat-sdk-android
chat/4.32.3
Improvements
- Fixed message resend functionality to properly handle rate limit errors (
900200).
chat/4.32.2
Improvements
- Updated sdk request log with more details for better debugging.
chat/4.32.1
Improvements
- Fixed an issue where
SendbirdChat.connect()returnedUserobject asnullin theConnectHandlereven whenSendbirdChat.currentUserexisted during the reconnection process.
ktx/4.32.0
Features
- Added AI Agent Message Feedback coroutine extensions
- Added
SendbirdChat.AIAgent.awaitCreateMessageFeedback()suspend function - Added
SendbirdChat.AIAgent.awaitUpdateMessageFeedback()suspend function - Added
SendbirdChat.AIAgent.awaitDeleteMessageFeedback()suspend function
- Added
chat/4.32.0
Features
- Added AI Agent Message Feedback APIs
- Added
SendbirdChat.AIAgent.createMessageFeedback()to create feedback for AI agent messages - Added
SendbirdChat.AIAgent.updateMessageFeedback()to update existing feedback - Added
SendbirdChat.AIAgent.deleteMessageFeedback()to delete feedback - Added
AIAgentMessageFeedbackRatingenum (GOOD, BAD) - Added
AIAgentMessageFeedbackCreateParams,AIAgentMessageFeedbackUpdateParams,AIAgentMessageFeedbackDeleteParams - Added corresponding handlers:
AIAgentMessageFeedbackCreateHandler,AIAgentMessageFeedbackUpdateHandler,AIAgentMessageFeedbackDeleteHandler
- Added
ktx/4.31.1
Features
- Updated chat sdk to version 4.31.1
- Fixed a possible binary compatibility issue when using Chat SDK in multiple products.
chat/4.31.1
Improvements
- Fixed a possible binary compatibility issue when using Chat SDK in multiple products.
ktx/4.31.0
Features
- Added support for closing conversation manually for AI Agent in
GroupChannelGroupChannel.awaitCloseConversation()
chat/4.31.0
Features
- Added support for closing conversation manually for AI Agent in
GroupChannelGroupChannel.closeConversation(handler: CompletionHandler?)
ktx/4.30.0
Features
- Added
onConnectionDelayedcallback toConnectionHandler.- A new callback method that is invoked when the server is overloaded. This callback provides information about the delay time before automatic reconnection. After the delayed time period, the SDK automatically initiates reconnection and triggers the callback sequence:
onReconnectStarted→onReconnectSucceededinterface ConnectionHandler { fun onConnected(userId: String) {} fun onDisconnected(userId: String) {} fun onReconnectStarted() {} fun onReconnectSucceeded() {} fun onReconnectFailed() {} /** * A callback for when the connection is delayed. * * @param retryAfter The time in seconds to wait before the next reconnection attempt. */ fun onConnectionDelayed(retryAfter: Long) {} } runCatching { SendbirdChat.awaitConnect(USER_ID, AUTH_TOKEN) }.onSuccess { user -> // Connection successful }.onFailure { e -> val sendbirdException = e as SendbirdException if (sendbirdException.code == SendbirdError.ERR_CONNECTION_DELAYED) { val data = sendbirdException.data // The delay time in seconds before automatic reconnection val retryAfter: Long = data["retry_after"] as? Long ?: 0 // Server-provided reason code for the delay val message = data["message"] as? String ?: "" // Detailed error message explaining the delay val reasonCode: Int = data["reason_code"] as? Int ?: 0 // The SDK will automatically retry after the specified delay time // and the result will be notified through ConnectionHandler.onReconnectSucceeded(). } }
- A new callback method that is invoked when the server is overloaded. This callback provides information about the delay time before automatic reconnection. After the delayed time period, the SDK automatically initiates reconnection and triggers the callback sequence:
- Added
SendbirdChat.Options.setTypingIndicatorInvalidateTime(invalidateTimeMillis: Long)- Sets typing indicator invalidation time. Defaults to 10000 (10 seconds)
Improvements
- Added a condition in
AIAgentGroupChannelListQuery.belongsTo()to exclude non–AI Agent and non–Desk channels from the query results.