From 1d851e7b2e5e0c937413b8fd4bcdb35c8492430b Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Mon, 24 May 2021 01:51:15 +0200 Subject: Upload device keys when creating a new olm account --- lib/connection.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/connection.cpp b/lib/connection.cpp index 0c0bada6..1485a347 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -455,6 +455,10 @@ void Connection::Private::completeSetup(const QString& mxId) olmAccount->createNewAccount(); accountSettings.setEncryptionAccountPickle(std::get(olmAccount->pickle(Unencrypted{}))); // TODO handle pickle errors + auto job = q->callApi(olmAccount->deviceKeys()); + connect(job, &BaseJob::failure, q, [=]{ + qCWarning(E2EE) << "Failed to upload device keys:" << job->errorString(); + }); } else { // account already existing auto pickle = accountSettings.encryptionAccountPickle(); -- cgit v1.2.3