Compare the unencrypted filename with the originalName

Otherwise obviously we'd never find the files in the metadata.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-07-08 15:35:39 +02:00 committed by Camila
parent 2831b22be4
commit 7e251edd6e

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