From 8b573fc9f9f4b65ace0fdc5b4598f1974e01f7e3 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 9 Jun 2021 16:05:16 +0200 Subject: Fix compilation without E2EE --- lib/connection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/connection.cpp b/lib/connection.cpp index 9ea09258..10256d9c 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -658,10 +658,12 @@ void Connection::onSyncSuccess(SyncData&& data, bool fromCache) d->consumeAccountData(data.takeAccountData()); d->consumePresenceData(data.takePresenceData()); d->consumeToDeviceEvents(data.takeToDeviceEvents()); +#ifdef Quotient_E2EE_ENABLED if(d->encryptionUpdateRequired) { d->loadOutdatedUserDevices(); d->encryptionUpdateRequired = false; } +#endif } void Connection::Private::consumeRoomData(SyncDataList&& roomDataList, -- cgit v1.2.3