Skip to content

Releases: cometchat/chat-sdk-javascript

v4.1.10

29 May 13:22
46607e9

Choose a tag to compare

New

  • Added support for CometChat Campaigns notification feeds through the NotificationFeedRequestBuilder, enabling paginated notification retrieval with filtering by read state, category, channel, tags, and date range.
  • Added the NotificationCategoriesRequestBuilder API to retrieve available notification categories for feed filtering and organization.
  • Added the NotificationFeedItem and NotificationCategory models to provide structured access to notification feed data, including metadata, delivery status, timestamps, and category information.
  • Added the PushNotification model to provide typed access to push notification payload data, including campaign and announcement identifiers.
  • Added the NotificationFeedListener interface to receive real-time notification feed updates and react to new notification events.
  • Added the FeedReadState enum with READ, UNREAD, and ALL values to simplify notification feed filtering.
  • Added the CometChat.addNotificationFeedListener() and CometChat.removeNotificationFeedListener() methods to register and manage real-time notification feed listeners.
  • Added the CometChat.markFeedItemAsDelivered(), CometChat.markFeedItemsAsDelivered(), and CometChat.markFeedItemAsRead() methods to support notification delivery tracking and read-state management.
  • Added the CometChat.reportFeedEngagement() method to report notification engagement events using custom interaction types.
  • Added the CometChat.getNotificationFeedUnreadCount() and CometChat.getNotificationFeedItem() methods to retrieve unread notification counts and fetch individual notification feed items.
  • Added the CometChat.markPushNotificationDelivered() and CometChat.markPushNotificationClicked() methods to track push notification delivery and click interactions.
  • Added static access to NotificationFeedRequestBuilder, NotificationCategoriesRequestBuilder, NotificationFeedItem, NotificationCategory, PushNotification, NotificationFeedListener, and FeedReadState through the CometChat namespace, simplifying SDK integration and usage.

Enhancements

  • None

Fixes

  • None

v4.1.9

30 Mar 16:25
2c7e4d2

Choose a tag to compare

New

  • None

Enhancements

  • Added a new argument to CometChat.initiateCall() that allows developers to specify a timeout (in seconds) after which an unanswered call is automatically rejected. By default, the timeout is set to 45 seconds.

Fixes

  • None

v4.1.8

26 Feb 14:40
2189729

Choose a tag to compare

New

  • None

Enhancements

  • None

Fixes

  • Fixed an issue where the WebSocket connection failed to reconnect after a page refresh following a logout and subsequent login.

v4.1.6

11 Jan 18:43
6442a90

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.1.5

25 Nov 08:21
85ceecc

Choose a tag to compare

New

  • Added a getFlagReasons method that retrieves the list of available flag reasons, allowing developers to display accurate and up-to-date reporting categories.
  • Added a flagMessage method that enables developers to flag a specific message by providing the message ID and the corresponding reason ID.

Enhancements

  • None

Fixes

  • None

v4.1.4

17 Nov 07:40
afbb508

Choose a tag to compare

New

  • Introduced a setPage(pageNumber: number) method in the Request Builder. This gives developers more flexibility by allowing them to define a specific starting page (pivot) for pagination. After setting the page, the next call to fetchNext will load the following page in sequence and continue from there.

Enhancements

  • None

Fixes

  • None

v4.1.3

31 Oct 13:20
9a0fb5e

Choose a tag to compare

New

  • None

Enhancements

  • Added the setStatus method in the Group Member Request Builder, allowing developers to filter group members based on their status.
  • Added the setHideAgentic and setOnlyAgentic methods in the Conversation Request Builder, enabling developers to filter and retrieve only agent-related conversations.
  • Added the setStorageMode method, allowing developers to choose between session and local storage for managing stored data.

Fixes

  • None

v4.1.2

29 Sep 06:29
22311e2

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.1.1

22 Aug 14:01
f3108bc

Choose a tag to compare

New

  • Added a new method onMessageModerated in the MessagesListener class. This method is triggered when a message sent by the logged-in user is successfully processed by moderation and receives either an approved or disapproved status.
  • Introduced a new getModerationStatus() method in both TextMessage and MediaMessage classes, allowing users to check the moderation status of their messages.
  • Added a new ModerationStatus enum that includes the following states:
    • pending
    • approved
    • disapproved
    • unmoderated (default for apps without moderation enabled)

Enhancements

  • None

Fixes

  • None

v4.1.0

14 Aug 13:18
5024348

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