mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore(mobile): handle sync album on duplicated (#12173)
* chore(mobile): handle sync album on duplicated * remove check for duplicate in manual sync * linting
This commit is contained in:
parent
4bf82fb4c4
commit
d685bc1f34
3 changed files with 3 additions and 16 deletions
|
|
@ -8,7 +8,6 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|||
import 'package:immich_mobile/entities/asset.entity.dart';
|
||||
import 'package:immich_mobile/entities/etag.entity.dart';
|
||||
import 'package:immich_mobile/entities/exif_info.entity.dart';
|
||||
import 'package:immich_mobile/entities/store.entity.dart';
|
||||
import 'package:immich_mobile/entities/user.entity.dart';
|
||||
import 'package:immich_mobile/models/backup/backup_candidate.model.dart';
|
||||
import 'package:immich_mobile/providers/api.provider.dart';
|
||||
|
|
@ -309,18 +308,6 @@ class AssetService {
|
|||
useTimeFilter: false,
|
||||
);
|
||||
|
||||
final duplicates = await _apiService.assetsApi.checkExistingAssets(
|
||||
CheckExistingAssetsDto(
|
||||
deviceAssetIds: candidates.map((c) => c.asset.id).toList(),
|
||||
deviceId: Store.get(StoreKey.deviceId),
|
||||
),
|
||||
);
|
||||
|
||||
if (duplicates != null) {
|
||||
candidates
|
||||
.removeWhere((c) => !duplicates.existingIds.contains(c.asset.id));
|
||||
}
|
||||
|
||||
await refreshRemoteAssets();
|
||||
final remoteAssets = await _db.assets
|
||||
.where()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue