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
{
#if __has_include("Quotient/e2ee/sssshandler.h")
#if Quotient_VERSION_MINOR > 8 || Quotient_VERSION_PATCH > 1
return true;
#else
return false;

View File

@@ -7,7 +7,7 @@
#include <Quotient/accountregistry.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>
#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)