chore: remove incompatibility message warning (#28993)

* chore: remove incompatibility message warning

* lint
This commit is contained in:
Alex
2026-06-11 18:05:19 -05:00
committed by GitHub
parent c3e23a6b3a
commit a17276fd1e
2 changed files with 1 additions and 8 deletions
+1 -5
View File
@@ -1,8 +1,4 @@
String? getVersionCompatibilityMessage(int appMajor, int appMinor, int serverMajor, int serverMinor) {
if (serverMajor != appMajor) {
return 'Your app major version is not compatible with the server!';
}
String? getVersionCompatibilityMessage(int _, int appMinor, int _, int serverMinor) {
// Add latest compat info up top
if (serverMinor < 106 && appMinor >= 106) {
return 'Your app minor version is not compatible with the server! Please update your server to version v1.106.0 or newer to login';
@@ -5,9 +5,6 @@ void main() {
test('getVersionCompatibilityMessage', () {
String? result;
result = getVersionCompatibilityMessage(1, 0, 2, 0);
expect(result, 'Your app major version is not compatible with the server!');
result = getVersionCompatibilityMessage(1, 106, 1, 105);
expect(
result,