From 0898550adcc5e6fe2648fcd4e181ecab9b5befea Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 6 Jun 2020 20:49:17 +0200 Subject: Small updates to match the new generated definitions --- lib/connection.cpp | 4 ++-- lib/encryptionmanager.cpp | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'lib') 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(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 sessions; // TODO: cache void updateDeviceKeys( - const QHash>& - deviceKeys) + const QHash>& 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 } } -- cgit v1.2.3