Compare the unencrypted filename with the originalName
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 8 Jul 2020 13:35:39 +0000 (15:35 +0200)
committerCamila <smayres@gmail.com>
Thu, 9 Jul 2020 14:22:54 +0000 (16:22 +0200)
Otherwise obviously we'd never find the files in the metadata.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/propagateremotedeleteencrypted.cpp

index dd6619fb96e197f7ae52a5afd1dbc079bc253a21..f9048067ac08944dc9214c0b3e04c05708f4baae 100644 (file)
@@ -81,7 +81,7 @@ void PropagateRemoteDeleteEncrypted::slotFolderEncryptedMetadataReceived(const Q
     bool found = false;
     const QVector<EncryptedFile> files = metadata.files();
     for (const EncryptedFile &file : files) {
-        if (file.encryptedFilename == fileName) {
+        if (file.originalFilename == fileName) {
             metadata.removeEncryptedFile(file);
             found = true;
             break;