Skip to content

High performance self-hosted photo and video management solution.

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

shenlongd7e970dcea97
diff --git a/mobile/lib/modules/album/views/sharing_page.dart b/mobile/lib/modules/album/views/sharing_page.dart
index 1f1745d497..4e62b16c25 100644
--- a/mobile/lib/modules/album/views/sharing_page.dart
+++ b/mobile/lib/modules/album/views/sharing_page.dart
@@ -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(
diff --git a/mobile/lib/routing/tab_navigation_observer.dart b/mobile/lib/routing/tab_navigation_observer.dart
index c5bc4865b5..5a4ee43984 100644
--- a/mobile/lib/routing/tab_navigation_observer.dart
+++ b/mobile/lib/routing/tab_navigation_observer.dart
@@ -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();
}
}