mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
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:
parent
2831b22be4
commit
7e251edd6e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue