Merge pull request #26040 from nextcloud/backport/25916/stable20

[stable20] Remove trash items from other trash backends when deleting all
This commit is contained in:
Roeland Jago Douma 2021-03-11 10:34:32 +01:00 committed by GitHub
commit b306b88a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ class TrashRoot implements ICollection {
public function delete() {
\OCA\Files_Trashbin\Trashbin::deleteAll();
foreach ($this->trashManager->listTrashRoot($this->user) as $trashItem) {
$this->trashManager->removeItem($trashItem);
}
}
public function getName(): string {