Skip to content

v5.2.0

Choose a tag to compare

@aanshisingh-cometchat aanshisingh-cometchat released this 08 Sep 12:44
· 1 commit to v5 since this release
e0abd06

New

  • Added support for pinning messages to a conversation, making pinned messages visible to everyone in the conversation. Enable Pin Messages for your app in the CometChat Dashboard; the UI Kit resolves this setting at login. Hide the pin and unpin actions with the hidePinMessageOption and hideUnpinMessageOption props on CometChatMessageList.
  • Added support for privately saving messages for the logged-in user across all conversations. Enable Save Messages for your app in the CometChat Dashboard, and hide the save and unsave actions with the hideSaveMessageOption and hideUnsaveMessageOption props on CometChatMessageList.
  • Added CometChatPinnedMessages to display messages pinned in a conversation, with options to unpin, save, copy, and view message information. Open it from the message header by setting showPinnedMessagesOption and handling pinnedMessagesClick on CometChatMessageHeader.
  • Added CometChatSavedMessages to display the logged-in user's saved messages across all conversations.
  • Added support for pinning conversations to the top of the conversation list. Enable Pin Conversations for your app in the CometChat Dashboard, and hide the pin action with the hidePinConversation prop on CometChatConversations.
  • Added support for subscribing to a message thread, so a user is notified about new replies without having to reply first. The action appears in the message action sheet and as a control in the thread header, in both group and one-to-one conversations. Set enableThreadSubscription to true in COMETCHAT_GLOBAL_CONFIG to opt in — this is off by default, as the backend exposes no capability flag for the UI Kit to detect. Hide either surface with the hideThreadSubscriptionOption prop on CometChatMessageList and the hideThreadSubscriptionToggle prop on CometChatThreadHeader.
  • Added CometChatPinSaveEvents so an application can keep its own surfaces in step with pin and save changes, including changes made on the user's other devices. Subscribe to pinned$, unpinned$, saved$, unsaved$, conversationPinned$ or conversationUnpinned$, each of which delivers both the confirmed server state and this client's own change.
  • Added CometChatThreadEvents to report thread subscription changes through ccThreadSubscriptionChanged. CometChatThreadHeader also emits threadSubscriptionChange for the thread it is displaying. Use these to keep a custom thread list in step, as the UI Kit does not ship one.

Fixes

  • Fixed call token generation depending on the Calls SDK's separately cached auth token, which could be stale or unset after a re-login or user switch; the call token request now passes the logged-in user's auth token explicitly.

Enhancements

  • None