1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-19 10:54:00 +00:00

restore archived item from trash to archive (#18795)

This commit is contained in:
Nick Krantz
2026-02-06 10:32:41 -06:00
committed by jaasen-livefront
parent 258e1afee4
commit 73ce18066c

View File

@@ -46,7 +46,9 @@ export class RestoreCommand {
return Response.notFound();
}
if (cipher.archivedDate && isArchivedVaultEnabled) {
// Determine if restoring from archive or trash
// When a cipher is archived and deleted, restore from the trash first
if (cipher.archivedDate && cipher.deletedDate == null && isArchivedVaultEnabled) {
return this.restoreArchivedCipher(cipher, activeUserId);
} else {
return this.restoreDeletedCipher(cipher, activeUserId);