Add api version check to client

This commit is contained in:
Andras Schmelczer 2025-11-23 22:12:49 +00:00
parent b1826907e7
commit 3ed2e4f666
10 changed files with 52 additions and 3 deletions

View file

@ -220,8 +220,6 @@ export class SyncClient {
}
this.hasStarted = true;
await this.serverConfig.initialize();
if (
!this.unloadTelemetry &&
this.settings.getSettings().enableTelemetry
@ -311,6 +309,7 @@ export class SyncClient {
this.resetInMemoryState();
this.hasStartedOfflineSync = false;
this.hasFinishedOfflineSync = false;
this.serverConfig.reset();
// restart syncing
this.fetchController.finishReset();
@ -457,6 +456,8 @@ export class SyncClient {
private async startSyncing(): Promise<void> {
this.checkIfDestroyed();
await this.serverConfig.initialize();
if (!this.hasStartedOfflineSync) {
this.hasStartedOfflineSync = true;
await this.syncer.scheduleSyncForOfflineChanges();