1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 05:53:42 +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 GitHub
parent 6b071481e2
commit 256fe6305f

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