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:
committed by
jaasen-livefront
parent
258e1afee4
commit
73ce18066c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user