2022-04-24 04:08:45 +02:00
|
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
2023-02-06 09:13:32 +02:00
|
|
|
import 'package:immich_mobile/shared/models/user.dart';
|
2022-04-24 04:08:45 +02:00
|
|
|
import 'package:immich_mobile/shared/services/user.service.dart';
|
|
|
|
|
2022-06-25 20:46:51 +02:00
|
|
|
final suggestedSharedUsersProvider =
|
2023-02-06 09:13:32 +02:00
|
|
|
FutureProvider.autoDispose<List<User>>((ref) async {
|
2022-06-25 20:46:51 +02:00
|
|
|
UserService userService = ref.watch(userServiceProvider);
|
2022-04-24 04:08:45 +02:00
|
|
|
|
2023-02-06 09:13:32 +02:00
|
|
|
return await userService.getAllUsers(isAll: false) ?? [];
|
2022-04-24 04:08:45 +02:00
|
|
|
});
|