aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 6b7bc9a9..22b1faef 100644
--- a/lib/crypto/qolmaccount.cpp
+++ b/lib/crypto/qolmaccount.cpp
@@ -206,7 +206,7 @@ SignedOneTimeKey QOlmAccount::signedOneTimeKey(const QByteArray &key, const QStr
QByteArray QOlmAccount::signOneTimeKey(const QString &key) const
{
QJsonDocument j(QJsonObject{{"key", key}});
- return sign(j.toJson());
+ return sign(j.toJson(QJsonDocument::Compact));
}
std::optional<QOlmError> QOlmAccount::removeOneTimeKeys(const std::unique_ptr<QOlmSession> &session) const