Repository navigation
v7.3.0
·
2 commits
to v7
since this release
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
onErroronce; your ownerrorViewreplaces it. An offline keyword search shows Connect to search with Search needs an internet connection., and noonError. 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
hideOfflineNoticesprop onCometChatMessageListandCometChatConversations. - Added the
ui:message/send-state-changedandui:offline/cache-resetUI 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
roleprop onCometChatListItem(optionby default, orgroup).
Enhancements
- Hid presence while the connection is down, in lists, headers and screen-reader labels, with offline on.
- Added
data-ccanddata-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
messagesRequestBuilderpassed toCometChatMessageListorCometChatSavedMessagesbeing 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.