1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00

chore(mobile): clean up (#13338)

This commit is contained in:
Alex 2024-10-10 16:53:20 +07:00 committed by GitHub
parent 1baa49edb7
commit 4ce49e4666
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 7 deletions

View File

@ -30,11 +30,6 @@ class AlbumNotifier extends StateNotifier<List<Album>> {
late final StreamSubscription<List<Album>> _streamSub;
Future<void> refreshRemoteAlbums() async {
final isRefresing =
ref.read(isRefreshingRemoteAlbumProvider.notifier).state;
if (isRefresing) return;
ref.read(isRefreshingRemoteAlbumProvider.notifier).state = true;
await _albumService.refreshRemoteAlbums();
ref.read(isRefreshingRemoteAlbumProvider.notifier).state = false;

View File

@ -797,8 +797,7 @@ class SyncService {
assets.sort(Asset.compareByOwnerChecksumCreatedModified);
assets.uniqueConsecutive(
compare: Asset.compareByOwnerChecksum,
onDuplicate: (a, b) =>
_log.info("Ignoring duplicate assets on device:\n$a\n$b"),
onDuplicate: (a, b) => {},
);
final int duplicates = before - assets.length;
if (duplicates > 0) {