From 039c214e7adb934eec66fcecf35e074f5638ed51 Mon Sep 17 00:00:00 2001 From: Krille Date: Tue, 14 May 2024 10:13:45 +0200 Subject: [PATCH] fix: ensureNotSoftLoggedOut must be called before network reqeust in syncFilter check --- lib/src/client.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 605c2c18..d3eed5c4 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -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,