mirror of
https://github.com/immich-app/immich.git
synced 2026-04-28 12:00:39 -04:00
use cached provider in splash screen
This commit is contained in:
parent
d025966a2b
commit
7e57359d07
@ -61,8 +61,7 @@ class SplashScreenPageState extends ConsumerState<SplashScreenPage> {
|
||||
(_) async {
|
||||
try {
|
||||
wsProvider.connect();
|
||||
await infoProvider.getServerInfo();
|
||||
final serverInfo = ref.read(serverInfoProvider);
|
||||
final serverInfo = await infoProvider.getServerInfo();
|
||||
|
||||
if (Store.isBetaTimelineEnabled) {
|
||||
bool syncSuccess = false;
|
||||
|
||||
@ -32,10 +32,11 @@ class ServerInfoNotifier extends StateNotifier<ServerInfo> {
|
||||
final ServerInfoService _serverInfoService;
|
||||
final _log = Logger("ServerInfoNotifier");
|
||||
|
||||
Future<void> getServerInfo() async {
|
||||
Future<ServerInfo> getServerInfo() async {
|
||||
await getServerVersion();
|
||||
await getServerFeatures();
|
||||
await getServerConfig();
|
||||
return state;
|
||||
}
|
||||
|
||||
Future<void> getServerVersion() async {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user