fix: ensureNotSoftLoggedOut must be called before network reqeust in syncFilter check

This commit is contained in:
Krille 2024-05-14 10:13:45 +02:00
parent 85a85211b8
commit 039c214e7a
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
1 changed files with 2 additions and 1 deletions

View File

@ -1852,7 +1852,6 @@ class Client extends MatrixApi {
return;
}
Object? syncError;
await _checkSyncFilter();
// 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
@ -1861,6 +1860,8 @@ class Client extends MatrixApi {
await ensureNotSoftLoggedOut(timeout * 2);
await _checkSyncFilter();
final syncRequest = sync(
filter: syncFilterId,
since: prevBatch,