Skip to content

Commit

Permalink
fix(mobile): reduce server version api calls (immich-app#4265)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlong-tanwen authored Sep 29, 2023
1 parent fb7249d commit d7e970d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mobile/lib/modules/album/views/sharing_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class SharingPage extends HookConsumerWidget {
padding: const EdgeInsets.only(
left: 12.0,
right: 12.0,
top: 24.0,
bottom: 12.0,
),
child: Row(
Expand Down
2 changes: 1 addition & 1 deletion mobile/lib/routing/tab_navigation_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ class TabNavigationObserver extends AutoRouterObserver {
}

Store.put(StoreKey.currentUser, User.fromDto(userResponseDto));
ref.read(serverInfoProvider.notifier).getServerVersion();
} catch (e) {
debugPrint("Error refreshing user info $e");
}
}
ref.watch(serverInfoProvider.notifier).getServerVersion();
}
}

0 comments on commit d7e970d

Please sign in to comment.