Skip to content

Commit

Permalink
Merge pull request #1611 from famedly/krille/fix-set-presence-load-ar…
Browse files Browse the repository at this point in the history
…chive

fix: Set presence when loading archive
  • Loading branch information
nico-famedly authored Nov 16, 2023
2 parents 03d038c + 4b36c2f commit 4990960
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4990960

Please sign in to comment.