Skip to content

Releases: cometchat/chat-sdk-react-native

v4.0.19

16 Jan 13:38
f2da200

Choose a tag to compare

New

  • Introduced markMessageAsUnread(), enabling users to mark individual messages as unread for easier tracking and follow-up.
  • Added markConversationAsDelivered() to explicitly mark a conversation as delivered.
  • Added markConversationAsRead() to update the conversation status to read.
  • Added setLatestMessageId() to set the latest message ID for a conversation.

Enhancements

  • None

Fixes

  • None

Deprecations

  • Deprecated markAsUnread() in favor of markMessageAsUnread() .

v4.0.18

16 Jan 13:28
f2da200

Choose a tag to compare

New

  • Added getQuotedMessageId() and setQuotedMessageId() methods to the BaseMessage class for retrieving and assigning the ID of a quoted message.
  • Introduced getQuotedMessage() and setQuotedMessage() in the BaseMessage class to get or set the quoted message object.
  • Introduced hideQuotedMessages() in the MessageRequestBuilder class to configure whether quoted messages should be included in the response.
  • Added isHideQuotedMessages() to the MessageRequest class to check whether quoted messages are excluded from the response.

Enhancements

  • None

Fixes

  • None

v4.0.17

26 Nov 05:57
e1108f6

Choose a tag to compare

New

  • Added getFlagReasons, allowing clients to retrieve the list of available moderation flag reasons.
  • Added flagMessage, enabling users to flag or report messages for moderation review.

Enhancements

  • None

Fixes

  • None

v4.0.16

14 Nov 13:32
ed66b04

Choose a tag to compare

New

  • Added the onMessageModerated event, allowing applications to react when a message undergoes moderation.
  • Introduced the getModerationStatus method, enabling clients to retrieve the moderation state of a specific message.

Enhancements

  • None

Fixes

  • None

v4.0.15

17 Oct 09:10
3af4ba5

Choose a tag to compare

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.
    • AIAssistantMessageStartedEvent – Triggered when an AI assistant begins sending a message.
    • 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 AIAssistantListener for 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 MessageListener for 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.
    • AIToolResultMessageData – Contains structured data for a tool result message.
    • 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.
    • AIToolArgumentMessageData – Contains structured data for a tool argument message.
    • AIAssistantMessage – Represents a message sent by the AI assistant.
    • AIAssistantMessageData – Contains structured data for an AI assistant message.

Enhancements

  • None

Fixes

  • None

v4.0.14

16 Jun 12:51
9a46317

Choose a tag to compare

New

  • Added a new method setAttachmentTypes in MessagesRequestBuilder, enabling users to filter messages by attachment type (image, file, video, audio).
  • Introduced an AttachmentType enum to support the new attachment filtering feature.

Enhancements

  • None

Fixes

  • Resolved a crash that occurred when null was passed as the last message parameter while creating a conversation object using new CometChat.Conversation().
  • Fixed an issue where special characters such as # and @ in tags or search keywords were not being sent to the API.
  • Addressed a problem where string values like "0", "null", "undefined", and "false" passed as search keywords were ignored by the SDK.
  • Removed unnecessary references to sendFriendRequests, acceptFriendRequest, and rejectFriendRequest to streamline the SDK.

v4.0.13

23 Apr 14:44
4e0d552

Choose a tag to compare

New

  • Introduced Conversations & Advanced Search to enhance message and conversation filtering capabilities.
  • Added new filters to MessagesRequestBuilder:
    • hasAttachments() – Retrieve messages that contain file attachments.
    • hasReactions() – Retrieve messages that include user reactions.
    • hasMentions() – Retrieve messages where users are mentioned.
    • hasLinks() – Retrieve messages that contain hyperlinks.
    • setMentionedUIDs(string[]) – Retrieve messages mentioning specific user IDs.
  • Added new filters to ConversationsRequestBuilder:
    • setSearchKeyword(string) – Search conversations (user or group) by name keyword.
    • setUnread(boolean) – Retrieve only unread conversations.

Enhancements

  • None

Fixes

  • None

v4.0.12

28 Aug 13:57
1266a35

Choose a tag to compare

New

  • None

Enhancements

  • None

Fixes

  • Fixed an issue where the timer for marking a call as unanswered would continue running even after the call was accepted, causing problems when the initiator attempted to end the call.

v4.0.11

08 Aug 12:51
4d77640

Choose a tag to compare

New

  • Added "onMessagesDeliveredToAll" and "onMessagesReadByAll" listeners to notify message sender when group messages are delivered or read by everyone in the group.

v4.0.10

10 Jul 14:05
89a240a

Choose a tag to compare

New

  • The following new methods have been introduced in the CometChatNotifications class:
    • updateTimezone: This method updates the timezone for receiving Enhanced Email and Enhanced SMS notifications correctly.
    • getTimezone: This method fetches the timezone set for a user.
  • Added new class NotificationPreferences in CometChatNotifications

Enhancements

  • The following methods in the ConversationsRequestBuilder class have been deprecated:
    • setIncludeBlockedUsers is now deprecated. Please use includeBlockedUsers as an alternative.
    • setWithBlockedInfo is now deprecated. Please use withBlockedInfo as an alternative.
  • Added missing type for method clearActiveCall
  • The following methods in the CometChatNotifications class have been deprecated:
    • fetchPushPreferences is now deprecated. Please use fetchPreferences as an alternative.
    • updatePushPreferences is now deprecated. Please use updatePreferences as an alternative.
    • resetPushPreferences is now deprecated. Please use resetPreferences as an alternative.
  • The following class in the CometChatNotifications class has been deprecated:
    • PushPreferences is now deprecated. Please use NotificationPreferences as an alternative.