From 4ce49e4666fea2f183913ee2e02dfb8460c610a9 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 10 Oct 2024 16:53:20 +0700 Subject: [PATCH] chore(mobile): clean up (#13338) --- mobile/lib/providers/album/album.provider.dart | 5 ----- mobile/lib/services/sync.service.dart | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/mobile/lib/providers/album/album.provider.dart b/mobile/lib/providers/album/album.provider.dart index 943671f1885ad..53c8855c0a9cf 100644 --- a/mobile/lib/providers/album/album.provider.dart +++ b/mobile/lib/providers/album/album.provider.dart @@ -30,11 +30,6 @@ class AlbumNotifier extends StateNotifier> { late final StreamSubscription> _streamSub; Future 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; diff --git a/mobile/lib/services/sync.service.dart b/mobile/lib/services/sync.service.dart index d691b006ad0d7..f1a6e9b0d7365 100644 --- a/mobile/lib/services/sync.service.dart +++ b/mobile/lib/services/sync.service.dart @@ -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) {