From 4b39d30255798d188c124a02bbbb0609d50a12ec Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 29 Sep 2021 19:27:26 +0100 Subject: [PATCH] All: Fix default sync target --- packages/app-mobile/root.tsx | 1 + packages/lib/BaseApplication.ts | 1 + packages/lib/models/Setting.ts | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/app-mobile/root.tsx b/packages/app-mobile/root.tsx index a5b794558c..b090d733f0 100644 --- a/packages/app-mobile/root.tsx +++ b/packages/app-mobile/root.tsx @@ -498,6 +498,7 @@ async function initialize(dispatch: Function) { let locale = NativeModules.I18nManager.localeIdentifier; if (!locale) locale = defaultLocale(); Setting.setValue('locale', closestSupportedLocale(locale)); + Setting.setValue('sync.target', 0); Setting.setValue('firstStart', 0); } diff --git a/packages/lib/BaseApplication.ts b/packages/lib/BaseApplication.ts index ecd2eb47da..216a51ea7f 100644 --- a/packages/lib/BaseApplication.ts +++ b/packages/lib/BaseApplication.ts @@ -790,6 +790,7 @@ export default class BaseApplication { Setting.setValue('sync.interval', 3600); } + Setting.setValue('sync.target', 0); Setting.setValue('firstStart', 0); } else { setLocale(Setting.value('locale')); diff --git a/packages/lib/models/Setting.ts b/packages/lib/models/Setting.ts index a7d270203a..3fe91c65a5 100644 --- a/packages/lib/models/Setting.ts +++ b/packages/lib/models/Setting.ts @@ -319,7 +319,7 @@ class Setting extends BaseModel { }, 'sync.target': { - value: 0, + value: 7, // Dropbox type: SettingItemType.Int, isEnum: true, public: true,