diff --git a/src/controller.cpp b/src/controller.cpp index f563b4dc0..62698e0ed 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -411,7 +411,7 @@ void Controller::removeConnection(const QString &userId) bool Controller::ssssSupported() const { -#if __has_include("Quotient/e2ee/sssshandler.h") +#if Quotient_VERSION_MINOR > 8 || Quotient_VERSION_PATCH > 1 return true; #else return false; diff --git a/src/foreigntypes.h b/src/foreigntypes.h index 88d1e127e..654145977 100644 --- a/src/foreigntypes.h +++ b/src/foreigntypes.h @@ -7,7 +7,7 @@ #include #include -#if __has_include("Quotient/e2ee/sssshandler.h") +#if Quotient_VERSION_MINOR > 8 || Quotient_VERSION_PATCH > 1 #include #endif @@ -47,7 +47,7 @@ struct ForeignKeyVerificationSession { QML_UNCREATABLE("") }; -#if __has_include("Quotient/e2ee/sssshandler.h") +#if Quotient_VERSION_MINOR > 8 || Quotient_VERSION_PATCH > 1 struct ForeignSSSSHandler { Q_GADGET QML_FOREIGN(Quotient::SSSSHandler)