fix: only use custom http client on android

This commit is contained in:
Jayesh Nirve 2022-06-21 18:20:27 +05:30
parent a3d41da047
commit ed2d208339
No known key found for this signature in database
GPG Key ID: F6D9E9BF14C7D103
1 changed files with 2 additions and 2 deletions

View File

@ -84,10 +84,10 @@ abstract class ClientManager {
}
static Client createClient(String clientName) {
final _client = CustomHttpClient.createHTTPClient();
return Client(
clientName,
httpClient: _client,
httpClient:
PlatformInfos.isAndroid ? CustomHttpClient.createHTTPClient() : null,
verificationMethods: {
KeyVerificationMethod.numbers,
if (kIsWeb || PlatformInfos.isMobile || PlatformInfos.isLinux)