This commit is contained in:
Sandeep Somavarapu 2022-09-28 11:28:21 +02:00 committed by GitHub
parent 044571548e
commit 352782487f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -420,7 +420,7 @@ export class UserDataSyncService extends Disposable implements IUserDataSyncServ
return isUndefined(result) ? null : result;
}
if (this.environmentService.isBuilt && !this.productService.enableSyncingProfiles) {
if (this.environmentService.isBuilt && (!this.productService.enableSyncingProfiles || isEqual(this.userDataSyncStoreManagementService.userDataSyncStore?.url, this.userDataSyncStoreManagementService.userDataSyncStore?.stableUrl))) {
return null;
}
@ -592,7 +592,7 @@ class ProfileSynchronizer extends Disposable {
if (!this._profile.isDefault) {
return;
}
if (this.environmentService.isBuilt && !this.productService.enableSyncingProfiles) {
if (this.environmentService.isBuilt && (!this.productService.enableSyncingProfiles || isEqual(this.userDataSyncStoreManagementService.userDataSyncStore?.url, this.userDataSyncStoreManagementService.userDataSyncStore?.stableUrl))) {
this.logService.debug('Skipping profiles sync');
return;
}