mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 17:25:35 +03:00
add server version check & auto sync cloud ids on compatible servers
This commit is contained in:
@@ -10,4 +10,8 @@ class ServerVersion extends SemVer {
|
||||
}
|
||||
|
||||
ServerVersion.fromDto(ServerVersionResponseDto dto) : super(major: dto.major, minor: dto.minor, patch: dto.patch_);
|
||||
|
||||
bool isAtLeast({int major = 0, int minor = 0, int patch = 0}) {
|
||||
return this >= SemVer(major: major, minor: minor, patch: patch);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user