You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added ConversationsRequest.getPinnedBy(), which returns the filter set with ConversationsRequestBuilder.setPinnedBy().
Added an error field to the entries UploadFileRequest.getItems() returns: on a failed or rejected file it holds the CometChatException that stopped it.
Enhancements
Improved reconnecting: the SDK now follows the browser's own online and offline events instead of waiting for the next 15-second ping, so the connection comes back as soon as the network does.
Limited background media downloads to two at a time with offline on, so a chat full of media no longer starts a download for every attachment.
Extended addMediaDownloadListener() to downloads started by downloadMedia(), not only background ones.
Fixes
Fixed User.getName() throwing for a user known only by a uid, such as the sender of a message that has not been sent yet.
Fixed MediaMessage.getAttachments() not returning a fresh array on each call as it did in 4.2.1, so changing the returned array no longer changes the message.
Fixed a send removing receiverId from the message the app passed, so the same message object can be sent again after a failure.
Fixed logout(), login(), init() and initFromSettings() never settling when the SDK's local storage could not be cleared; they now reject. An expired-token response in any letter case also ends the session.
Fixed a call made with no logged-in user, or an admin call with no API key, sending its request to the server before failing.
Fixed a second fetchNext() or fetchPrevious() on a request whose fetch is still running making a request of its own.
Fixed ReactionsRequest.getLimit() reporting a larger page size than the one actually requested.
Fixed importing the package by the deep paths /CometChat.d.ts, /LICENSE.md and /README.md, which worked in 4.2.1 and broke in 4.3.0.
Fixed voice notes reporting "Failed to load audio" with offline on, when the cached copy was still being written.
Fixed queued messages with offline on: a short network drop no longer leaves them waiting, each send is reported sent or failed once, and a logout or user switch settles the send's Promise instead of leaving it pending.
Fixed offline encryption on Electron 46 and later, where the cache failed to open because the synchronous safeStorage calls were removed.
Fixed the offline cache storing the logged-in user's auth token, JWT, file access token and socket channel.