aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2022-02-09 22:25:24 +0100
committerTobias Fella <fella@posteo.de>2022-02-09 22:25:24 +0100
commit6415d6fb194799870eb89cbaff4ba07939aa6ccb (patch)
tree358febd318a3f23dfcf591acb083983756c114cb /lib
parent94f34099b8a4c8a40cc99496ceaf9ad5b285c08f (diff)
downloadlibquotient-6415d6fb194799870eb89cbaff4ba07939aa6ccb.tar.gz
libquotient-6415d6fb194799870eb89cbaff4ba07939aa6ccb.zip
Fix compilation without E2EE
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp5
1 files 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::SupportedRoomVersion> Connection::availableRoomVersions() co
return result;
}
+#ifdef Quotient_E2EE_ENABLED
void Connection::Private::loadOutdatedUserDevices()
{
QHash<QString, QStringList> users;
@@ -2076,7 +2078,6 @@ void Connection::Private::loadDevicesList()
}
-#ifdef Quotient_E2EE_ENABLED
void Connection::encryptionUpdate(Room *room)
{
for(const auto &user : room->users()) {