mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(server): user preferences (#9736)
* refactor(server): user endpoints * feat(server): user preferences * mobile: user preference * wording --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
1f9158c545
commit
0fc6d69824
39 changed files with 1392 additions and 327 deletions
|
|
@ -58,6 +58,8 @@ class TabNavigationObserver extends AutoRouterObserver {
|
|||
try {
|
||||
final userResponseDto =
|
||||
await ref.read(apiServiceProvider).userApi.getMyUser();
|
||||
final userPreferences =
|
||||
await ref.read(apiServiceProvider).userApi.getMyPreferences();
|
||||
|
||||
if (userResponseDto == null) {
|
||||
return;
|
||||
|
|
@ -65,7 +67,7 @@ class TabNavigationObserver extends AutoRouterObserver {
|
|||
|
||||
Store.put(
|
||||
StoreKey.currentUser,
|
||||
User.fromUserDto(userResponseDto),
|
||||
User.fromUserDto(userResponseDto, userPreferences),
|
||||
);
|
||||
ref.read(serverInfoProvider.notifier).getServerVersion();
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue