fix sync and show the button on iOS only
This commit is contained in:
@@ -265,7 +265,7 @@ class SyncStreamRepository extends DriftDatabaseRepository {
|
||||
final map = metadata.value as Map<String, Object?>;
|
||||
final companion = RemoteAssetCloudIdEntityCompanion(cloudId: Value(map['iCloudId']?.toString()));
|
||||
batch.insert(
|
||||
_db.remoteAssetEntity,
|
||||
_db.remoteAssetCloudIdEntity,
|
||||
companion.copyWith(assetId: Value(metadata.assetId)),
|
||||
onConflict: DoUpdate((_) => companion),
|
||||
);
|
||||
|
||||
@@ -301,6 +301,7 @@ class BetaSyncSettings extends HookConsumerWidget {
|
||||
ref.read(backgroundSyncProvider).hashAssets();
|
||||
},
|
||||
),
|
||||
if (Platform.isIOS)
|
||||
ListTile(
|
||||
title: Text(
|
||||
"sync_cloud_ids".t(context: context),
|
||||
|
||||
Reference in New Issue
Block a user