diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-02-27 08:13:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 08:13:50 +0100 |
commit | b5ba85fc3a4ddd61bb6f7a433310a997bd1e574d (patch) | |
tree | 7dceaf3006c494d5049477b2f04baaa44091dc4d /lib/connection.cpp | |
parent | 62039b527507aa6c45fbf7ac787da6234d2faac3 (diff) | |
parent | ccff9edb1c7102cfcc846561a3bdc41fc1496df9 (diff) | |
download | libquotient-b5ba85fc3a4ddd61bb6f7a433310a997bd1e574d.tar.gz libquotient-b5ba85fc3a4ddd61bb6f7a433310a997bd1e574d.zip |
Merge #534: Handle to-device messages before handling roomdata
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 2 |
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(); |