fix: Set presence when loading archive

This commit is contained in:
Krille 2023-11-15 14:18:48 +01:00
parent 7324064f22
commit d1bbf57b6f
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -932,6 +932,7 @@ class Client extends MatrixApi {
final syncResp = await sync( final syncResp = await sync(
filter: '{"room":{"include_leave":true,"timeline":{"limit":10}}}', filter: '{"room":{"include_leave":true,"timeline":{"limit":10}}}',
timeout: _archiveCacheBusterTimeout, timeout: _archiveCacheBusterTimeout,
setPresence: syncPresence,
); );
// wrap around and hope there are not more than 30 leaves in 2 minutes :) // wrap around and hope there are not more than 30 leaves in 2 minutes :)
_archiveCacheBusterTimeout = (_archiveCacheBusterTimeout + 1) % 30; _archiveCacheBusterTimeout = (_archiveCacheBusterTimeout + 1) % 30;