diff --git a/AUTHORS.md b/AUTHORS.md index 5372b1bc..67b47fdc 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -26,6 +26,7 @@ - Hanaa Allohibi - - Shey Alnasrawi - - Costas Korai - +- Bassam Mutairi - ## Translators diff --git a/lib/providers/auth.dart b/lib/providers/auth.dart index 04957f7a..502828bf 100644 --- a/lib/providers/auth.dart +++ b/lib/providers/auth.dart @@ -140,7 +140,6 @@ class AuthProvider with ChangeNotifier { if (response.statusCode >= 400) { throw WgerHttpException(response.body); } - // If update is required don't log in user if (await applicationUpdateRequired()) { return {'action': LoginActions.update}; @@ -174,7 +173,10 @@ class AuthProvider with ChangeNotifier { await initData(serverUrl); // If update is required don't log in user - if (await applicationUpdateRequired()) { + if (await applicationUpdateRequired( + applicationVersion!.version, + {MANIFEST_KEY_CHECK_UPDATE: 'true'}, + )) { return {'action': LoginActions.update}; }