From 6415d6fb194799870eb89cbaff4ba07939aa6ccb Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 9 Feb 2022 22:25:24 +0100 Subject: Fix compilation without E2EE --- lib/connection.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/connection.cpp b/lib/connection.cpp index 1a1b284d..04ce1dc2 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -523,8 +523,9 @@ void Connection::Private::loginToServer(LoginArgTs&&... loginArgs) completeSetup(loginJob->userId()); #ifndef Quotient_E2EE_ENABLED qCWarning(E2EE) << "End-to-end encryption (E2EE) support is turned off."; -#endif // Quotient_E2EE_ENABLED +#else // Quotient_E2EE_ENABLED database->clear(); +#endif // Quotient_E2EE_ENABLED }); connect(loginJob, &BaseJob::failure, q, [this, loginJob] { emit q->loginError(loginJob->errorString(), loginJob->rawDataSample()); @@ -1970,6 +1971,7 @@ QVector Connection::availableRoomVersions() co return result; } +#ifdef Quotient_E2EE_ENABLED void Connection::Private::loadOutdatedUserDevices() { QHash users; @@ -2076,7 +2078,6 @@ void Connection::Private::loadDevicesList() } -#ifdef Quotient_E2EE_ENABLED void Connection::encryptionUpdate(Room *room) { for(const auto &user : room->users()) { -- cgit v1.2.3