fix(mobile): ignore patch releases for app version alerts (#23565)

* fix(mobile): ignore patch releases for app version alerts

* chore: make difference type nullable to indicate when versions match

* chore: add error handling for semver parsing

* chore: tests
This commit is contained in:
Brandon Wees
2025-11-03 21:09:32 -06:00
committed by GitHub
parent 0647c22956
commit 1e4779cf48
3 changed files with 122 additions and 2 deletions
@@ -67,7 +67,7 @@ class ServerInfoNotifier extends StateNotifier<ServerInfo> {
return;
}
if (clientVersion < serverVersion) {
if (clientVersion < serverVersion && clientVersion.differenceType(serverVersion) != SemVerType.patch) {
state = state.copyWith(versionStatus: VersionStatus.clientOutOfDate);
return;
}