Przeglądaj źródła

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

shenlong 1 rok temu
rodzic
commit
d7e970dcea

+ 1 - 0
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(

+ 1 - 1
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();
   }
 }