Skip to content

v5.3.0

Choose a tag to compare

@raj-dubey1 raj-dubey1 released this 24 Nov 14:27
· 1 commit to v5 since this release
9665c39

New

  • Added offline support, off by default. Turn it on with UIKitSettingsBuilder.setOfflineConfig({ enabled: true }), or with chatSDK.offline in initFromSettings. It needs Chat SDK JavaScript 4.3.1 or later; the peer dependency stays ^4.2.0, and with an older SDK offline stays off.
  • Added cached first paint with offline on, on the message list, conversations, users, groups, group members, reactions, the notification feed, pinned, saved and AI history.
  • Added queued sends with offline on. A message sent offline shows Not sent yet and goes out on reconnect. Unsent messages offer only Retry and Delete, and a failed one shows Not sent. Tap to retry.
  • Added the offline states with offline on: Connect to load … for a list with nothing saved, Connect to search for an offline keyword search, and Connect to load more at a message-list edge. Each loads once by itself on reconnect.
  • Added a picked or dropped photo, video or file going straight to the SDK's queue while not connected.
  • Added UIKitSettings.offlineConfig and the CometChatOfflineConfig type.
  • Added CometChatMessageEvents.ccMessageSendStateChanged and ccOfflineCacheReset. They are never emitted with offline off.
  • Added the hideOfflineNotices input on cometchat-message-list and cometchat-conversations.
  • Added CometChatUIKitConstants.MessageOption.retryMessage and .discardMessage.
  • Added offline strings in all 19 locales, and CSS variables for the offline states.
  • Added Angular 22 support. The @angular/common and @angular/core peer range is now >=18.0.0 <23.0.0.

Enhancements

  • Hid presence while the connection is down, in every list and header, with offline on.
  • Added data-testid and data-cc-* attributes for test automation on message rows, the row menu, conversation rows, notices, the list footer, the composer input, tray tiles and the empty and error views.

Fixes

  • Fixed an open chat that could stop receiving new, edited and deleted messages and reactions until it was reopened. Two message-list listeners could get the same name in the same millisecond, and the second replaced the first. This was present in 5.2.3.
  • Fixed placeholderText on the composer showing a blank input instead of the plain text.
  • Fixed a conversation row on the user's other devices turning blank after the conversation was pinned or unpinned.
  • Fixed a failed composer send showing the clock instead of the error mark.
  • Fixed the server copy of your own message losing its thread-subscribed flag and quote when it replaced the local one.
  • Fixed a messagesRequestBuilder you pass in being changed by the kit.
  • Fixed the conversation list's reconnect refresh keeping a stale copy of a row.