mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Bugfix: mailvelope editor failed
This commit is contained in:
parent
ab748aab99
commit
0cbca605ec
1 changed files with 7 additions and 9 deletions
|
|
@ -1383,7 +1383,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
||||||
this.signOptions(options);
|
this.signOptions(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
initEncrypt() {
|
async initEncrypt() {
|
||||||
const recipients = this.allRecipients(),
|
const recipients = this.allRecipients(),
|
||||||
options = [];
|
options = [];
|
||||||
|
|
||||||
|
|
@ -1394,14 +1394,12 @@ export class ComposePopupView extends AbstractViewPopup {
|
||||||
OpenPGPUserStore.hasPublicKeyForEmails(recipients)
|
OpenPGPUserStore.hasPublicKeyForEmails(recipients)
|
||||||
&& options.push('OpenPGP');
|
&& options.push('OpenPGP');
|
||||||
|
|
||||||
MailvelopeUserStore.hasPublicKeyForEmails(recipients).then(result => {
|
if (await MailvelopeUserStore.hasPublicKeyForEmails(recipients)) {
|
||||||
if (result) {
|
|
||||||
options.push('Mailvelope');
|
options.push('Mailvelope');
|
||||||
} else {
|
} else {
|
||||||
'mailvelope' === this.viewArea() && this.bodyArea();
|
'mailvelope' === this.viewArea() && this.bodyArea();
|
||||||
// this.dropMailvelope();
|
// this.dropMailvelope();
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
const count = recipients.length,
|
const count = recipients.length,
|
||||||
identity = this.currentIdentity(),
|
identity = this.currentIdentity(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue