mirror of
https://github.com/immich-app/immich.git
synced 2025-10-24 23:39:03 -04:00
* wip * album creation * fix: album api repository no invalidating after logging out * add linkedRemoteAlbumId column and migration * link/unlink remote album * logic to find and add new assets to album * pr feedback * add toggle option to backup option page * refactor: provider > service * rename * Handle page pop manually * UI feedback for user creation and sync linked album * uncomment migration * remove unused method
12 lines
435 B
Dart
12 lines
435 B
Dart
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:immich_mobile/domain/services/sync_linked_album.service.dart';
|
|
import 'package:immich_mobile/providers/user.provider.dart';
|
|
|
|
Future<void> syncLinkedAlbumsIsolated(ProviderContainer ref) {
|
|
final user = ref.read(currentUserProvider);
|
|
if (user == null) {
|
|
return Future.value();
|
|
}
|
|
return ref.read(syncLinkedAlbumServiceProvider).syncLinkedAlbums(user.id);
|
|
}
|