mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Make sure to add e2ee files to normal blacklist too
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
093810f6b9
commit
7d208ec06e
1 changed files with 6 additions and 0 deletions
|
@ -1355,7 +1355,13 @@ void Folder::removeLocalE2eFiles()
|
|||
|
||||
qCInfo(lcFolder) << "About to blacklist: " << e2eFoldersToBlacklist;
|
||||
|
||||
bool ok = false;
|
||||
const auto existingBlacklist = _journal.getSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, &ok);
|
||||
Q_ASSERT(ok);
|
||||
|
||||
// Will get deleted from blacklist if encryption is set up again later
|
||||
const auto expandedBlacklist = existingBlacklist + e2eFoldersToBlacklist;
|
||||
_journal.setSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, expandedBlacklist);
|
||||
_journal.setSelectiveSyncList(SyncJournalDb::SelectiveSyncE2eFoldersToRemoveFromBlacklist, e2eFoldersToBlacklist);
|
||||
|
||||
setSyncPaused(currentSyncPaused);
|
||||
|
|
Loading…
Reference in a new issue