diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-06-06 20:49:17 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-06-07 19:47:34 +0200 |
commit | 0898550adcc5e6fe2648fcd4e181ecab9b5befea (patch) | |
tree | 7334f6717975037397160bb0bebec5f28e39baae /lib | |
parent | 4ff89aa1ec48623264944f18f97cd92115268eaf (diff) | |
download | libquotient-0898550adcc5e6fe2648fcd4e181ecab9b5befea.tar.gz libquotient-0898550adcc5e6fe2648fcd4e181ecab9b5befea.zip |
Small updates to match the new generated definitions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connection.cpp | 4 | ||||
-rw-r--r-- | lib/encryptionmanager.cpp | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 26de0c5f..50e31d52 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -480,8 +480,8 @@ void Connection::sync(int timeout) d->syncTimeout = timeout; Filter filter; - filter.room.edit().timeline.edit().limit.emplace(100); - filter.room.edit().state.edit().lazyLoadMembers.emplace(d->lazyLoading); + filter.room.timeline.limit.emplace(100); + filter.room.state.lazyLoadMembers.emplace(d->lazyLoading); auto job = d->syncJob = callApi<SyncJob>(BackgroundRequest, d->data->lastEvent(), filter, timeout); diff --git a/lib/encryptionmanager.cpp b/lib/encryptionmanager.cpp index 0895fae9..c50459f3 100644 --- a/lib/encryptionmanager.cpp +++ b/lib/encryptionmanager.cpp @@ -89,13 +89,11 @@ public: // A map from senderKey to InboundSession QMap<QString, InboundSession*> sessions; // TODO: cache void updateDeviceKeys( - const QHash<QString, QHash<QString, QueryKeysJob::DeviceInformation>>& - deviceKeys) + const QHash<QString, QHash<QString, QueryKeysJob::DeviceKeys>>& deviceKeys) { for (auto userId : deviceKeys.keys()) { for (auto deviceId : deviceKeys.value(userId).keys()) { - QueryKeysJob::DeviceInformation info = - deviceKeys.value(userId).value(deviceId); + auto info = deviceKeys.value(userId).value(deviceId); // TODO: ed25519Verify, etc } } |