aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2021-06-09 16:05:16 +0200
committerTobias Fella <fella@posteo.de>2021-12-01 21:56:11 +0100
commit8b573fc9f9f4b65ace0fdc5b4598f1974e01f7e3 (patch)
tree459c63e9c18e9014a37e456cab94c6c35b8628d0 /lib
parentd997bbf54e755c42b62fadca8ee63b27aa0e7480 (diff)
downloadlibquotient-8b573fc9f9f4b65ace0fdc5b4598f1974e01f7e3.tar.gz
libquotient-8b573fc9f9f4b65ace0fdc5b4598f1974e01f7e3.zip
Fix compilation without E2EE
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp2
1 files changed, 2 insertions, 0 deletions
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,