Temporarily disable certificate validation for Android

This is merely to allow users to log in and should be a temporary fix only.
This commit is contained in:
Loren Burkholder 2021-03-28 13:50:27 -04:00
parent 9a6f53e8b2
commit bef2216ad3

View file

@ -232,7 +232,14 @@ public:
QString accessToken() const { return accessToken_; }
QString deviceId() const { return deviceId_; }
QString homeserver() const { return homeserver_; }
bool disableCertificateValidation() const { return disableCertificateValidation_; }
bool disableCertificateValidation() const
{
#ifdef Q_OS_ANDROID
return true;
#else
return disableCertificateValidation_;
#endif
}
QStringList hiddenTags() const { return hiddenTags_; }
bool useIdenticon() const { return useIdenticon_ && JdenticonProvider::isAvailable(); }