From b067a9ccf36be8a16d47fc40e2f545b0efd4544b Mon Sep 17 00:00:00 2001 From: alex-z Date: Tue, 12 Mar 2024 18:46:31 +0100 Subject: [PATCH] Bugfix. E2EE. Use 'double' for legacy metadata. Signed-off-by: alex-z --- src/libsync/foldermetadata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/foldermetadata.cpp b/src/libsync/foldermetadata.cpp index 955aa750762d7..a01a1898250fb 100644 --- a/src/libsync/foldermetadata.cpp +++ b/src/libsync/foldermetadata.cpp @@ -694,7 +694,7 @@ QByteArray FolderMetadata::encryptedMetadataLegacy() // multiple toBase64() just to keep with the old (wrong way) const auto encryptedMetadataKey = encryptDataWithPublicKey(metadataKeyForEncryption().toBase64().toBase64(), _account->e2e()->_publicKey).toBase64(); const QJsonObject metadata{ - {versionKey, QString::number(version, 'f', 1)}, + {versionKey, version}, {metadataKeyKey, QJsonValue::fromVariant(encryptedMetadataKey)}, {"checksum", QJsonValue::fromVariant(computeMetadataKeyChecksum(encryptedMetadataKey))}, };