fix: ensureNotSoftLoggedOut must be called before network reqeust in syncFilter check
This commit is contained in:
parent
85a85211b8
commit
039c214e7a
|
|
@ -1852,7 +1852,6 @@ class Client extends MatrixApi {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Object? syncError;
|
Object? syncError;
|
||||||
await _checkSyncFilter();
|
|
||||||
|
|
||||||
// The timeout we send to the server for the sync loop. It says to the
|
// The timeout we send to the server for the sync loop. It says to the
|
||||||
// server that we want to receive an empty sync response after this
|
// server that we want to receive an empty sync response after this
|
||||||
|
|
@ -1861,6 +1860,8 @@ class Client extends MatrixApi {
|
||||||
|
|
||||||
await ensureNotSoftLoggedOut(timeout * 2);
|
await ensureNotSoftLoggedOut(timeout * 2);
|
||||||
|
|
||||||
|
await _checkSyncFilter();
|
||||||
|
|
||||||
final syncRequest = sync(
|
final syncRequest = sync(
|
||||||
filter: syncFilterId,
|
filter: syncFilterId,
|
||||||
since: prevBatch,
|
since: prevBatch,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue