aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp4
1 files changed, 4 insertions, 0 deletions
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<QByteArray>(olmAccount->pickle(Unencrypted{})));
// TODO handle pickle errors
+ auto job = q->callApi<UploadKeysJob>(olmAccount->deviceKeys());
+ connect(job, &BaseJob::failure, q, [=]{
+ qCWarning(E2EE) << "Failed to upload device keys:" << job->errorString();
+ });
} else {
// account already existing
auto pickle = accountSettings.encryptionAccountPickle();