Fix ifs for ssss

This commit is contained in:
Tobias Fella
2024-06-27 18:23:29 +02:00
parent ea4cb5bf62
commit 3d433762b1
2 changed files with 3 additions and 3 deletions

View File

@@ -411,7 +411,7 @@ void Controller::removeConnection(const QString &userId)
bool Controller::ssssSupported() const bool Controller::ssssSupported() const
{ {
#if __has_include("Quotient/e2ee/sssshandler.h") #if Quotient_VERSION_MINOR > 8 || Quotient_VERSION_PATCH > 1
return true; return true;
#else #else
return false; return false;

View File

@@ -7,7 +7,7 @@
#include <Quotient/accountregistry.h> #include <Quotient/accountregistry.h>
#include <Quotient/keyverificationsession.h> #include <Quotient/keyverificationsession.h>
#if __has_include("Quotient/e2ee/sssshandler.h") #if Quotient_VERSION_MINOR > 8 || Quotient_VERSION_PATCH > 1
#include <Quotient/e2ee/sssshandler.h> #include <Quotient/e2ee/sssshandler.h>
#endif #endif
@@ -47,7 +47,7 @@ struct ForeignKeyVerificationSession {
QML_UNCREATABLE("") QML_UNCREATABLE("")
}; };
#if __has_include("Quotient/e2ee/sssshandler.h") #if Quotient_VERSION_MINOR > 8 || Quotient_VERSION_PATCH > 1
struct ForeignSSSSHandler { struct ForeignSSSSHandler {
Q_GADGET Q_GADGET
QML_FOREIGN(Quotient::SSSSHandler) QML_FOREIGN(Quotient::SSSSHandler)