Merge pull request #1611 from famedly/krille/fix-set-presence-load-archive

fix: Set presence when loading archive
This commit is contained in:
Nicolas Werner 2023-11-16 21:36:01 +01:00 committed by GitHub
commit 499096068c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;