add server version check & auto sync cloud ids on compatible servers

This commit is contained in:
shenlong-tanwen
2025-12-04 22:36:24 +05:30
parent 0a84783841
commit d47e9a5db4
6 changed files with 35 additions and 8 deletions

View File

@@ -84,6 +84,7 @@ Future<List<_CloudIdMapping>> _fetchCloudIdMappings(Drift drift, String userId)
useColumns: false,
),
])..where(
// Only select assets that have a local cloud ID but either no remote cloud ID or a mismatched eTag
drift.localAssetEntity.id.isNotNull() &
drift.localAssetEntity.iCloudId.isNotNull() &
drift.remoteAssetEntity.ownerId.equals(userId) &