2022-04-24 04:08:45 +02:00
|
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
|
|
import 'package:immich_mobile/shared/services/user.service.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
import 'package:openapi/api.dart';
|
2022-04-24 04:08:45 +02:00
|
|
|
|
2022-06-25 20:46:51 +02:00
|
|
|
final suggestedSharedUsersProvider =
|
2022-07-13 14:23:48 +02:00
|
|
|
FutureProvider.autoDispose<List<UserResponseDto>>((ref) async {
|
2022-06-25 20:46:51 +02:00
|
|
|
UserService userService = ref.watch(userServiceProvider);
|
2022-04-24 04:08:45 +02:00
|
|
|
|
2022-07-13 14:23:48 +02:00
|
|
|
return await userService.getAllUsersInfo(isAll: false) ?? [];
|
2022-04-24 04:08:45 +02:00
|
|
|
});
|