diff --git a/packages/nextcloud/lib/src/version_supported.dart b/packages/nextcloud/lib/src/version_supported.dart index 56aeae89..9917d409 100644 --- a/packages/nextcloud/lib/src/version_supported.dart +++ b/packages/nextcloud/lib/src/version_supported.dart @@ -4,7 +4,7 @@ part of '../nextcloud.dart'; extension CoreVersionSupported on CoreClient { /// Checks if the app on the server is supported by the client Future isSupported([final CoreServerCapabilitiesOcsData? capabilities]) async => - (capabilities ?? (await rootClient.core.getCapabilities()).ocs!.data!).version!.major! == 24; + (capabilities ?? (await getCapabilities()).ocs!.data!).version!.major! == 24; } // ignore: public_member_api_docs