mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
optimize, refactor code
remove redundant code and checking getTrashedAssetsForAlbum for iOS tests for hash trashed assets
This commit is contained in:
parent
3839e72028
commit
3eb2bf0342
24 changed files with 393 additions and 793 deletions
|
|
@ -88,7 +88,7 @@ class SyncStreamService {
|
|||
return _syncStreamRepository.deletePartnerV1(data.cast());
|
||||
case SyncEntityType.assetV1:
|
||||
final remoteSyncAssets = data.cast<SyncAssetV1>();
|
||||
if (_trashSyncService.isAutoSyncMode) {
|
||||
if (_trashSyncService.isTrashSyncMode) {
|
||||
await _trashSyncService.handleRemoteTrashed(
|
||||
remoteSyncAssets.where((e) => e.deletedAt != null).map((e) => e.checksum),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue