From d1bbf57b6f1437e8adbe8427e2a242058762985a Mon Sep 17 00:00:00 2001 From: Krille Date: Wed, 15 Nov 2023 14:18:48 +0100 Subject: [PATCH] fix: Set presence when loading archive --- lib/src/client.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/client.dart b/lib/src/client.dart index 23d2195c..bdf03da6 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -932,6 +932,7 @@ class Client extends MatrixApi { final syncResp = await sync( filter: '{"room":{"include_leave":true,"timeline":{"limit":10}}}', timeout: _archiveCacheBusterTimeout, + setPresence: syncPresence, ); // wrap around and hope there are not more than 30 leaves in 2 minutes :) _archiveCacheBusterTimeout = (_archiveCacheBusterTimeout + 1) % 30;