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; }