diff --git a/lib/src/client.dart b/lib/src/client.dart index b76818a9..b52c5920 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -797,6 +797,9 @@ class Client extends MatrixApi { return _currentSync; } + /// Presence that is set on sync. + PresenceType syncPresence; + Future _innerSync() async { await _retryDelay; _retryDelay = Future.delayed(Duration(seconds: syncErrorTimeoutSec)); @@ -806,6 +809,7 @@ class Client extends MatrixApi { filter: syncFilters, since: prevBatch, timeout: prevBatch != null ? 30000 : null, + setPresence: syncPresence, ); if (_disposed) return; if (database != null) {