1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

use CATCHUP state after ERROR before going back to SYNCING

This commit is contained in:
Bruno Windels
2018-08-30 15:37:00 +02:00
parent d837ae64ac
commit 0d23d047fc
2 changed files with 12 additions and 6 deletions

View File

@@ -781,7 +781,7 @@ SyncApi.prototype._onSyncError = function(err, syncOptions) {
// if they wish.
this._startKeepAlives().then(() => {
if (this.getSyncState() === 'ERROR') {
this._updateSyncState("PREPARED", {
this._updateSyncState("CATCHUP", {
oldSyncToken: null,
nextSyncToken: null,
catchingUp: true,