aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/qolmaccount.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/qolmaccount.cpp b/lib/crypto/qolmaccount.cpp
index 8cf21045..6b7bc9a9 100644
--- a/lib/crypto/qolmaccount.cpp
+++ b/lib/crypto/qolmaccount.cpp
@@ -253,7 +253,7 @@ UploadKeysJob *QOlmAccount::createUploadKeyRequest(const OneTimeKeys &oneTimeKey
auto temp = signOneTimeKeys(oneTimeKeys);
QHash<QString, QVariant> oneTimeKeysSigned;
for (const auto &[keyId, key] : asKeyValueRange(temp)) {
- oneTimeKeysSigned[keyId] = QVariant::fromValue(key);
+ oneTimeKeysSigned[keyId] = QVariant::fromValue(toJson(key));
}
return new UploadKeysJob(keys, oneTimeKeysSigned);