mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 09:14:58 +03:00
add server version check & auto sync cloud ids on compatible servers
This commit is contained in:
@@ -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) &
|
||||
|
||||
Reference in New Issue
Block a user