diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index 93bcf9f38..ca8058351 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1,5 +1,12 @@ #include "clientsideencryption.h" +#include +#include +#include +#include +#include +#include + #include "account.h" #include "capabilities.h" #include "networkjobs.h" @@ -31,13 +38,6 @@ #include #include -#include -#include -#include -#include -#include -#include - #include QDebug operator<<(QDebug out, const std::string& str) diff --git a/src/libsync/vfs/cfapi/hydrationjob.cpp b/src/libsync/vfs/cfapi/hydrationjob.cpp index e09a5343c..daaf65739 100644 --- a/src/libsync/vfs/cfapi/hydrationjob.cpp +++ b/src/libsync/vfs/cfapi/hydrationjob.cpp @@ -199,7 +199,7 @@ void OCC::HydrationJob::slotCheckFolderEncryptedMetadata(const QJsonDocument &js // TODO: the following code is borrowed from PropagateDownloadEncrypted (see HydrationJob::onNewConnection() for explanation of next steps) qCDebug(lcHydration) << "Metadata Received reading" << e2eMangledName(); const QString filename = e2eMangledName(); - const FolderMetadata metadata(_account, json.toJson(QJsonDocument::Compact)); + const FolderMetadata metadata(_account, FolderMetadata::RequiredMetadataVersion::Version1, json.toJson(QJsonDocument::Compact)); if (metadata.isMetadataSetup()) { const QVector files = metadata.files(); diff --git a/src/libsync/vfs/cfapi/vfs_cfapi.cpp b/src/libsync/vfs/cfapi/vfs_cfapi.cpp index af5347ff6..a259ef922 100644 --- a/src/libsync/vfs/cfapi/vfs_cfapi.cpp +++ b/src/libsync/vfs/cfapi/vfs_cfapi.cpp @@ -418,7 +418,7 @@ void VfsCfApi::scheduleHydrationJob(const QString &requestId, const QString &fol job->setJournal(params().journal); job->setRequestId(requestId); job->setFolderPath(folderPath); - job->setIsEncryptedFile(record._isE2eEncrypted); + job->setIsEncryptedFile(record.isE2eEncrypted()); job->setE2eMangledName(record._e2eMangledName); connect(job, &HydrationJob::finished, this, &VfsCfApi::onHydrationJobFinished); d->hydrationJobs << job;