1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-26 10:50:29 +02:00

fix(mobile): reduce server version api calls (#4265)

This commit is contained in:
shenlong 2023-09-29 14:51:54 +00:00 committed by GitHub
parent fb7249d1f6
commit d7e970dcea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -117,6 +117,7 @@ class SharingPage extends HookConsumerWidget {
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
left: 12.0, left: 12.0,
right: 12.0, right: 12.0,
top: 24.0,
bottom: 12.0, bottom: 12.0,
), ),
child: Row( child: Row(

View File

@ -64,10 +64,10 @@ class TabNavigationObserver extends AutoRouterObserver {
} }
Store.put(StoreKey.currentUser, User.fromDto(userResponseDto)); Store.put(StoreKey.currentUser, User.fromDto(userResponseDto));
ref.read(serverInfoProvider.notifier).getServerVersion();
} catch (e) { } catch (e) {
debugPrint("Error refreshing user info $e"); debugPrint("Error refreshing user info $e");
} }
} }
ref.watch(serverInfoProvider.notifier).getServerVersion();
} }
} }