aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 66df1e43..7099c59c 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -777,11 +777,11 @@ void Connection::onSyncSuccess(SyncData&& data, bool fromCache)
d->consumeDevicesList(data.takeDevicesList());
#endif // Quotient_E2EE_ENABLED
+ d->consumeToDeviceEvents(data.takeToDeviceEvents());
d->data->setLastEvent(data.nextBatch());
d->consumeRoomData(data.takeRoomData(), fromCache);
d->consumeAccountData(data.takeAccountData());
d->consumePresenceData(data.takePresenceData());
- d->consumeToDeviceEvents(data.takeToDeviceEvents());
#ifdef Quotient_E2EE_ENABLED
if(d->encryptionUpdateRequired) {
d->loadOutdatedUserDevices();