Releases: cometchat/chat-sdk-flutter
Releases · cometchat/chat-sdk-flutter
v5.0.0-beta.2
New
- Added device and routing metadata (
deviceId,sender,receiver,receiverType) to socket events, enabling accurate message routing and preventing duplicate event handling. - Introduced a native Dart stream for typing indicators via
RealtimeRepository.typingStream, improving performance and reliability. TheonTypingIndicator()method now returnsStream<TypingIndicator>. - Expanded the
ReactionDatamodel to include additional metadata (id,messageId,uid) for more complete reaction tracking. - Standardized
ReactionActionEventaction constants to align with the Android SDK (message_reaction_added,message_reaction_removed). - Updated message event processing to use a DTO-to-mapper pipeline, ensuring consistent parsing with API responses.
- Added a platform-compatible isolate abstraction (
runInIsolate()), improving support for web environments. - Improved action message text formatting to ensure consistency across platforms (e.g., "Message Edited").
Enhancements
- Simplified package configuration by removing platform-specific plugin settings (Android/iOS) from
pubspec.yaml.
Fixes
- Resolved an issue where
deviceIdwas not parsed in most socket events, which prevented proper echo filtering for typing indicators, receipts, presence, and reactions. - Fixed an issue where users could see their own typing indicators in group chats.
- Corrected
rawDatahandling inMessageMapperto store the complete JSON payload instead of only the action string.
v4.1.2
New
- None
Enhancements
- Added support for configuring unanswered call timeouts in
CometChat.initiateCall(), allowing calls to be automatically rejected after a specified number of seconds. The default timeout is 45 seconds.
Fixes
- Resolved an issue where the
text_message_endevent was not recognized during AI Assistant streaming, preventing the streaming message bubble from finalizing correctly.
Deprecations
- None
Removals
- None
v5.0.0-beta.1
New
- Introduced a fully Dart-based SDK architecture, enabling native cross-platform support for iOS, Android, and Web.
Enhancements
- Enhanced SDK performance by replacing platform channel-based implementations with native Dart support.
- Enhanced typing indicator support to work consistently across all supported platforms, including Web.
- Updated
onTypingIndicator()to returnStream<TypingIndicator>for richer and more structured typing event handling. - Simplified typing state handling using
TypingIndicator.typingStatus("started"or"ended"), replacing the need to checkmethodName. - Expanded typing indicator event data to include
sender,receiverId,receiverType,metadata,lastTimestamp, andtypingStatus.
Removals
- Removed the dependency on
EventChannelfor typing events, enabling support across all supported platforms, including Web. - Removed the deprecated
markAsUnread()method. UsemarkMessageAsUnread()instead. - Removed the deprecated
receaverUidparameter fromstartTyping()andendTyping(). UsereceiverUidinstead. - Removed the deprecated
fetchPushPreferences(),updatePushPreferences(), andresetPushPreferences()methods. UsefetchPreferences(),updatePreferences(), andresetPreferences()instead. - Removed the deprecated
PushPreferencesclass. UseNotificationPreferencesinstead.
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