fix(mobile): refactor splash screen to not require online connection

This commit is contained in:
Alex
2024-07-29 10:52:53 -05:00
parent 3225e33fc1
commit 090762f9dd
2 changed files with 24 additions and 42 deletions
+3 -1
View File
@@ -64,7 +64,9 @@ class ApiService implements Authentication {
}
Future<String> resolveAndSetEndpoint(String serverUrl) async {
final endpoint = await _resolveEndpoint(serverUrl);
var endpoint = Store.tryGet(StoreKey.serverEndpoint);
endpoint ??= await _resolveEndpoint(serverUrl);
setEndpoint(endpoint);
// Save in hivebox for next startup