Releases: cometchat/chat-sdk-flutter
Releases · cometchat/chat-sdk-flutter
v4.1.0
New
- Introduced
markMessageAsUnread()method to allow marking messages as unread for easier tracking and follow-up. - Added
markConversationAsDelivered()method to signal that a conversation has been delivered. - Introduced
markConversationAsRead()method to update the status of a conversation to "read." - Updated
lastReadMessageIdvariable to return and accept an int type instead of a string. - Added
latestMessageIdvariable, which will hold the latest message id for that particular conversation.
Enhancements
- None
Fixes
- None
Deprecations
- Deprecated
markAsUnread()method. Please usemarkMessageAsUnread()instead.
Removals
- None
v4.0.33
New
- None
Enhancements
- None
Fixes
- Resolved an issue where image and video thumbnails were not displayed when the URL was not included in the metadata and the token-based file access feature was enabled.
Deprecations
- None
Removals
- None
v4.0.32
New
- Added a
getFlagReasonsmethod that retrieves the list of available flag reasons from the dashboard, allowing developers to display accurate and up-to-date reporting categories. - Added a
flagMessagemethod that enables developers to flag a specific message by providing the message ID and the corresponding reason ID. - Added
quotedMessageIdvariable to the BaseMessage class for retrieving and assigning the ID of a quoted message. - Introduced
quotedMessagein the BaseMessage class to get or set the quoted message object. - Introduced
hideQuotedMessagesin the MessageRequestBuilder class to configure whether quoted messages should be included in the response.
Enhancements
- None
Fixes
- None
Deprecations
- None
Removals
- None
v4.0.31
New
- Added a
getFlagReasonsmethod that retrieves the list of available flag reasons from the dashboard, allowing developers to display accurate and up-to-date reporting categories. - Added a
flagMessagemethod that enables developers to flag a specific message by providing the message ID and the corresponding reason ID. - Added
quotedMessageIdvariable to the BaseMessage class for retrieving and assigning the ID of a quoted message. - Introduced
quotedMessagein the BaseMessage class to get or set the quoted message object. - Introduced
hideQuotedMessagesin the MessageRequestBuilder class to configure whether quoted messages should be included in the response.
Enhancements
- None
Fixes
- None
Deprecations
- None
Removals
- None
v4.0.30
New
- None
Enhancements
- Changed the default limit to fetch in various request builders from 50 to 30.
Fixes
- Fixed an issue where only offline group members were fetched by default.
- Fixed pagination issue in various request builders.
- Added a flag to prevent multiple requests from being triggered simultaneously within a method.
Deprecations
- None
Removals
- None
v4.0.29
New
- Added filters (
hideAgentic,onlyAgentic) to ConversationsRequest to help manage AI-driven (agentic) conversations. - Added a status filter to GroupMembersRequest for more precise member management.
Enhancements
- Added setPage() methods to all request builders, enabling direct page navigation and improved data handling in paginated responses.
- Implemented file size and file count validation in sendMediaMessage(), with configurable limits available through Settings.
Fixes
- None
Deprecations
- None
Removals
- None
v4.0.28
New
- None
Enhancements
- None
Fixes
- Resolved an issue where sending multiple media files using the chat SDK did not return the list of attachments in the
onSuccesscallback. This issue occurred despite successful media transmission and has now been fixed to ensure accurate delivery feedback.
Deprecations
- None
Removals
- None
v4.0.27
New
- Added AI Assistant Event Classes to provide detailed lifecycle tracking for AI assistant interactions:
AIAssistantBaseEvent– Serves as the base type for all AI assistant-related events.AIAssistantRunStartedEvent– Triggered when an AI assistant run begins.AIAssistantRunFinishedEvent– Triggered when an AI assistant run completes.AIAssistantMessageEndedEvent– Triggered when an AI assistant finishes sending a message.AIAssistantContentReceivedEvent– Triggered when content is received from the AI assistant.AIAssistantToolStartedEvent– Triggered when the AI assistant starts executing a tool.AIAssistantToolEndedEvent– Triggered when the AI assistant completes a tool execution.AIAssistantToolArgumentEvent– Triggered when arguments are passed to an AI tool.AIAssistantToolResultEvent– Triggered when results are returned from an AI tool.
- Introduced
AIAssistantListenerfor subscribing to and handling AI assistant events:addAIAssistantListener– Registers a listener for AI assistant events.removeAIAssistantListener– Unregisters an AI assistant listener.onAIAssistantEventReceived– Handles incoming AI assistant events.
- Introduced new methods in
MessageListenerfor subscribing to and handling new AI assistant messages:onAIAssistantMessageReceived– Handles incoming AI assistant message.onAIToolArgumentsReceived– Handles incoming AI tool arguments.onAIToolResultReceived– Handles incoming AI tool result.
- Added Messages & Data Classes for structured handling of AI tool call, argument, result and message:
AIToolResultMessage– Represents a message containing the result of a tool execution.AIToolCall– Contains structured data for a specific AI tool call.AIToolCallFunction– Contains structured data for a specific AI tool call function.AIToolArgumentMessage– Represents a message containing tool arguments.AIAssistantMessage– Represents a message sent by the AI assistant.
Enhancements
- None
Fixes
- None
v4.0.26
Fixes
- Added a missing method to fetch message details by message ID.
v4.0.25
New
- Added a new
onMessageModeratedmethod in the MessageListener class. This method is triggered when a message sent by the logged-in user is successfully processed by moderation and receives either anapprovedordisapprovedstatus. - Introduced a new
moderationStatusvariable in both TextMessage and MediaMessage classes, allowing users to check the moderation status of their messages. - Added a new ModerationStatusEnum enum that includes the following states:
pendingapproveddisapprovedunmoderated(default for apps without moderation enabled)