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(); }