You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +03:00
Pass through PREPARED state after error, when keepalive returns succes.
This is according to the state diagram in client.js. This will show a spinner at the bottom of a room again while the catchup sync is in progress, which seems to have broken at some point.
This commit is contained in:
@@ -780,6 +780,13 @@ SyncApi.prototype._onSyncError = function(err, syncOptions) {
|
|||||||
// instead, so that clients can observe this state
|
// instead, so that clients can observe this state
|
||||||
// if they wish.
|
// if they wish.
|
||||||
this._startKeepAlives().then(() => {
|
this._startKeepAlives().then(() => {
|
||||||
|
if (this.getSyncState() == 'ERROR') {
|
||||||
|
this._updateSyncState("PREPARED", {
|
||||||
|
oldSyncToken: null,
|
||||||
|
nextSyncToken: null,
|
||||||
|
catchingUp: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
this._sync(syncOptions);
|
this._sync(syncOptions);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user