mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
changeset and disable presence manager from dev
This commit is contained in:
1 parent
7c29062403
commit
aadf445e23
2 files changed
+14
-4
No files matched your search
@@ -0,0 +1,10 @@
|
||||
---
|
||||
default: minor
|
||||
---
|
||||
|
||||
Improve sliding sync.
|
||||
|
||||
- Make sliding sync easier to enable during login or loading and from settings.
|
||||
- Start faster and restore rooms and spaces sooner.
|
||||
- Improve room details, memberships, presence, and unread indicators.
|
||||
- Make startup loading smoother for both sliding and classic sync.
|
||||
@@ -573,13 +573,13 @@ export const startClient = async (mx: MatrixClient, config?: StartClientConfig):
|
||||
|
||||
debugLog.info('sync', 'Starting Matrix client', { userId: mx.getUserId() });
|
||||
|
||||
const presenceManager = new PresenceSyncManager(mx);
|
||||
presenceSyncByClient.set(mx, presenceManager);
|
||||
startPresenceAfterInitialSync(mx, presenceManager);
|
||||
|
||||
let manager: SlidingSyncManager | undefined;
|
||||
|
||||
if (useSliding) {
|
||||
const presenceManager = new PresenceSyncManager(mx);
|
||||
presenceSyncByClient.set(mx, presenceManager);
|
||||
startPresenceAfterInitialSync(mx, presenceManager);
|
||||
|
||||
manager = new SlidingSyncManager(mx, baseUrl, {
|
||||
pollTimeoutMs: config?.pollTimeoutMs ?? SLIDING_SYNC_POLL_TIMEOUT_MS,
|
||||
timelineLimit: config?.timelineLimit,
|
||||
|
||||
Reference in new issue
Block a user