mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
chore: remove incompatibility message warning (#28993)
* chore: remove incompatibility message warning * lint
This commit is contained in:
parent
c3e23a6b3a
commit
a17276fd1e
2 changed files with 1 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue