mirror of
https://github.com/immich-app/immich.git
synced 2025-12-27 01:11:42 +03:00
add server version check & auto sync cloud ids on compatible servers
This commit is contained in:
@@ -147,6 +147,7 @@ class AppLifeCycleNotifier extends StateNotifier<AppLifeCycleEnum> {
|
||||
|
||||
final backgroundManager = _ref.read(backgroundSyncProvider);
|
||||
final isAlbumLinkedSyncEnable = _ref.read(appSettingsServiceProvider).getSetting(AppSettingsEnum.syncAlbums);
|
||||
final serverInfo = _ref.read(serverInfoProvider);
|
||||
|
||||
try {
|
||||
bool syncSuccess = false;
|
||||
@@ -160,6 +161,9 @@ class AppLifeCycleNotifier extends StateNotifier<AppLifeCycleEnum> {
|
||||
_resumeBackup();
|
||||
}),
|
||||
_resumeBackup(),
|
||||
// Sync cloud IDs if server version is compatible
|
||||
if (CurrentPlatform.isIOS && serverInfo.serverVersion.isAtLeast(major: 2, minor: 4))
|
||||
backgroundManager.syncCloudIds(),
|
||||
]);
|
||||
} else {
|
||||
await _safeRun(backgroundManager.hashAssets(), "hashAssets");
|
||||
|
||||
Reference in New Issue
Block a user