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:
parent
1baa49edb7
commit
4ce49e4666
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user