getVersionCheck method

Checks whether the spreed app installed on the server is supported by this client.

Also returns the supported version number.

Implementation

VersionCheck getVersionCheck(core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data capabilities) {
  final version = capabilities.capabilities.spreedPublicCapabilities?.spreedPublicCapabilities0?.spreed.version;
  return VersionCheck(
    versions: version != null ? BuiltList([Version.parse(version)]) : null,
    minimumVersion: minVersion,
  );
}