fix: remove code already handled by snjs (#633)

This commit is contained in:
Mo Bitar
2021-09-17 11:16:16 -05:00
committed by GitHub
parent 8fb34f2e85
commit e6e01d0f2c

View File

@@ -26,7 +26,7 @@ export class ArchiveManager {
this.application = application; this.application = application;
} }
public async downloadBackup(encrypted: boolean) { public async downloadBackup(encrypted: boolean): Promise<void> {
const intent = encrypted const intent = encrypted
? EncryptionIntent.FileEncrypted ? EncryptionIntent.FileEncrypted
: EncryptionIntent.FileDecrypted; : EncryptionIntent.FileDecrypted;
@@ -44,10 +44,6 @@ export class ArchiveManager {
`Standard Notes Encrypted Backup and Import File - ${this.formattedDate()}.txt` `Standard Notes Encrypted Backup and Import File - ${this.formattedDate()}.txt`
); );
} else { } else {
/** Remove auth/keyParams as they won't be needed to decrypt the file */
delete data.auth_params;
delete data.keyParams;
/** download as zipped plain text files */
this.downloadZippedDecryptedItems(data); this.downloadZippedDecryptedItems(data);
} }
} }