Improved server version check

This commit is contained in:
Juan Gilsanz Polo 2023-11-20 15:16:20 +01:00
parent c2af933eb5
commit 34bff2f506
29 changed files with 77 additions and 57 deletions

View file

@ -237,7 +237,8 @@ class StatusProvider with ChangeNotifier {
}
Future<bool> getServerStatus({
bool? withLoadingIndicator
bool? withLoadingIndicator,
bool? overrideCheckServerVersion
}) async {
if (withLoadingIndicator == true) {
_loadStatus = LoadStatus.loading;
@ -258,7 +259,7 @@ class StatusProvider with ChangeNotifier {
referenceVersion: MinimumServerVersion.stable,
referenceVersionBeta: MinimumServerVersion.beta
);
if (validVersion == false) {
if (validVersion == false && overrideCheckServerVersion != true) {
showDialog(
context: globalNavigatorKey.currentContext!,
builder: (ctx) => UnsupportedVersionModal(
@ -269,7 +270,6 @@ class StatusProvider with ChangeNotifier {
)
);
}
return true;
}
else {