Bugfix: mailvelope editor failed

This commit is contained in:
the-djmaze 2024-02-26 16:59:50 +01:00
parent ab748aab99
commit 0cbca605ec

View file

@ -1383,7 +1383,7 @@ export class ComposePopupView extends AbstractViewPopup {
this.signOptions(options);
}
initEncrypt() {
async initEncrypt() {
const recipients = this.allRecipients(),
options = [];
@ -1394,14 +1394,12 @@ export class ComposePopupView extends AbstractViewPopup {
OpenPGPUserStore.hasPublicKeyForEmails(recipients)
&& options.push('OpenPGP');
MailvelopeUserStore.hasPublicKeyForEmails(recipients).then(result => {
if (result) {
options.push('Mailvelope');
} else {
'mailvelope' === this.viewArea() && this.bodyArea();
// this.dropMailvelope();
}
});
if (await MailvelopeUserStore.hasPublicKeyForEmails(recipients)) {
options.push('Mailvelope');
} else {
'mailvelope' === this.viewArea() && this.bodyArea();
// this.dropMailvelope();
}
const count = recipients.length,
identity = this.currentIdentity(),