diff --git a/src/libsync/updatefiledropmetadata.cpp b/src/libsync/updatefiledropmetadata.cpp index c2543d74fd575..163ddd4f1db20 100644 --- a/src/libsync/updatefiledropmetadata.cpp +++ b/src/libsync/updatefiledropmetadata.cpp @@ -14,6 +14,7 @@ #include "updatefiledropmetadata.h" +#include "account.h" #include "clientsideencryptionjobs.h" #include "clientsideencryption.h" #include "syncfileitem.h" @@ -74,7 +75,7 @@ void UpdateFileDropMetadataJob::slotFolderEncryptedIdReceived(const QStringList void UpdateFileDropMetadataJob::slotTryLock(const QByteArray &fileId) { - const auto lockJob = new LockEncryptFolderApiJob(propagator()->account(), fileId, this); + const auto lockJob = new LockEncryptFolderApiJob(propagator()->account(), fileId, propagator()->_journal, propagator()->account()->e2e()->_publicKey, this); connect(lockJob, &LockEncryptFolderApiJob::success, this, &UpdateFileDropMetadataJob::slotFolderLockedSuccessfully); connect(lockJob, &LockEncryptFolderApiJob::error, this, &UpdateFileDropMetadataJob::slotFolderLockedError); lockJob->start(); @@ -167,7 +168,7 @@ void UpdateFileDropMetadataJob::unlockFolder() _isUnlockRunning = true; qCDebug(lcUpdateFileDropMetadataJob) << "Calling Unlock"; - const auto unlockJob = new UnlockEncryptFolderApiJob(propagator()->account(), _folderId, _folderToken, this); + const auto unlockJob = new UnlockEncryptFolderApiJob(propagator()->account(), _folderId, _folderToken, propagator()->_journal, this); connect(unlockJob, &UnlockEncryptFolderApiJob::success, [this](const QByteArray &folderId) { qCDebug(lcUpdateFileDropMetadataJob) << "Successfully Unlocked";