mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 09:35:12 +00:00
fix: only use custom http client on android
This commit is contained in:
parent
1c7b6a4953
commit
3d00d9f532
1 changed files with 2 additions and 2 deletions
|
@ -84,10 +84,10 @@ abstract class ClientManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
static Client createClient(String clientName) {
|
static Client createClient(String clientName) {
|
||||||
final _client = CustomHttpClient.createHTTPClient();
|
|
||||||
return Client(
|
return Client(
|
||||||
clientName,
|
clientName,
|
||||||
httpClient: _client,
|
httpClient:
|
||||||
|
PlatformInfos.isAndroid ? CustomHttpClient.createHTTPClient() : null,
|
||||||
verificationMethods: {
|
verificationMethods: {
|
||||||
KeyVerificationMethod.numbers,
|
KeyVerificationMethod.numbers,
|
||||||
if (kIsWeb || PlatformInfos.isMobile || PlatformInfos.isLinux)
|
if (kIsWeb || PlatformInfos.isMobile || PlatformInfos.isLinux)
|
||||||
|
|
Loading…
Reference in a new issue