diff options
author | Tobias Fella <fella@posteo.de> | 2022-02-09 22:25:24 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2022-02-09 22:25:24 +0100 |
commit | 6415d6fb194799870eb89cbaff4ba07939aa6ccb (patch) | |
tree | 358febd318a3f23dfcf591acb083983756c114cb /lib | |
parent | 94f34099b8a4c8a40cc99496ceaf9ad5b285c08f (diff) | |
download | libquotient-6415d6fb194799870eb89cbaff4ba07939aa6ccb.tar.gz libquotient-6415d6fb194799870eb89cbaff4ba07939aa6ccb.zip |
Fix compilation without E2EE
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connection.cpp | 5 |
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()) { |