From 059991cb21a5aee73f040a127686fd1bf1de347f Mon Sep 17 00:00:00 2001 From: alex-z Date: Thu, 18 Jan 2024 18:39:15 +0100 Subject: [PATCH] Migration fix. 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 4cf0ec70f9b1a..8172ba10d7527 100644 --- a/src/libsync/foldermetadata.cpp +++ b/src/libsync/foldermetadata.cpp @@ -949,7 +949,7 @@ bool FolderMetadata::isRootEncryptedFolder() const bool FolderMetadata::encryptedMetadataNeedUpdate() const { // TODO: For now we do not migrated to V2 if a folder has subfolders, remove the following code and only leave "return latestSupportedMetadataVersion() > _existingMetadataVersion;" - if (latestSupportedMetadataVersion() <= _existingMetadataVersion || latestSupportedMetadataVersion() >= MetadataVersion::Version2_0) { + if (latestSupportedMetadataVersion() <= _existingMetadataVersion) { return false; }