From bef2216ad367218844fdaabfe2a17b8c2ebc9728 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Sun, 28 Mar 2021 13:50:27 -0400 Subject: [PATCH] Temporarily disable certificate validation for Android This is merely to allow users to log in and should be a temporary fix only. --- src/UserSettingsPage.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/UserSettingsPage.h b/src/UserSettingsPage.h index bcd9439b..ce6fec9d 100644 --- a/src/UserSettingsPage.h +++ b/src/UserSettingsPage.h @@ -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(); }