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 OfflineCacheResetReason.SCHEMA_RESET, the reason reported when a cache written by a newer SDK version is rebuilt, as after an app rollback.
Enhancements
Improved reconnecting: the SDK watches the device's network and reconnects as soon as it returns, instead of waiting for the next heartbeat.
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.
Moved the offline database and cached media out of the device backup, where react-native-fs is installed.
Changed retryAllFailedMessages() to queue every failed message again or none, so a part-way store failure no longer leaves some of them queued.
Fixes
Fixed User.getName() and getUid() throwing on a user known only by a uid, such as the sender of a message that has not been sent yet.
Fixed a send removing receiverId from the message the app passed, so the same message object can be sent again after a failure.
Fixed an API call that fails before its request is made never settling; it now rejects.
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, and a fetch that gets no answer within 60 seconds leaving the request blocked for good.
Fixed ThreadsRequest.fetchNext() skipping threads updated in the same second between pages.
Fixed ReactionsRequest.getLimit() reporting a larger page size than the one actually requested.
Fixed the offline cache storing the logged-in user's auth token, JWT, file access token and socket channel.
Fixed messages composed in the same millisecond being sent out of order with offline on, and a queued message being held behind another message of its chat.
Fixed cached reads with offline on returning something other than what the server would return, for content filters, thread reads, reads across all conversations, and the pinned, saved, my-threads, conversation, users, groups and members lists.
Fixed media handling with offline on: progress is measured against the attachment's own size, an expired link is refreshed, and files no cached message or upload uses any more are deleted.
Fixed the offline database surviving an encryption-setting change, a lost key, a damaged file and a cache written by a newer SDK version.