Skip to content

v7.3.0

Choose a tag to compare

@aanshisingh-cometchat aanshisingh-cometchat released this 23 Nov 19:34
· 2 commits to v7 since this release
0da8152

New

  • Added offline support, off by default. Turn it on with UIKitSettingsBuilder.setOfflineConfig({ enabled: true }). 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. Chats, messages, users, groups, members, reactions, notifications, pinned and saved lists show what is saved on the device first, then the server's copy. On reconnect the lists catch up from the SDK instead of reloading.
  • Added queued sends with offline on. A message sent offline shows Not sent yet and goes out on reconnect. Any message not sent offers only Retry and Delete, and a failed one shows Not sent. Tap to retry.
  • Added the offline states with offline on. A list with nothing saved shows Connect to load chats / users / groups / members / messages / reactions / notifications, with no Retry, and calls onError once; your own errorView replaces it. An offline keyword search shows Connect to search with Search needs an internet connection., and no onError. Each loads once by itself on reconnect. In the message list and threads, an edge that cannot load shows Connect to load more.
  • Added media from the device cache with offline on. Media the device never downloaded shows Available when online.
  • Added the hideOfflineNotices prop on CometChatMessageList and CometChatConversations.
  • Added the ui:message/send-state-changed and ui:offline/cache-reset UI events. They are never emitted with offline off.
  • Added CSS variables for the offline states (retry link, failed icon and tint, the "Connect to load more" footer, notices, unavailable media). Each falls back to today's look.
  • Added the role prop on CometChatListItem (option by default, or group).

Enhancements

  • Hid presence while the connection is down, in lists, headers and screen-reader labels, with offline on.
  • Added data-cc and data-cc-* attributes for test automation on message rows, conversation rows, notices, the list footer, the composer input and the empty and error views.

Fixes

  • Fixed a message list that was empty when the connection returned staying blank. It now loads again.
  • Fixed messages missed during an outage never loading when the newest message had not been acknowledged yet.
  • Fixed duplicate conversation rows after paging past a conversation that received a message.
  • Fixed a messagesRequestBuilder passed to CometChatMessageList or CometChatSavedMessages being modified by the kit.
  • Fixed saved message rows being announced by screen readers as selectable options.
  • Fixed voice notes showing "Failed to load audio" with offline on and media caching AUTO, for the sender and the receiver.